Skip to content

Commit 6c47500

Browse files
authored
Delete Unnecessary Tests (#158)
delete modul prefixes tests
1 parent d06f758 commit 6c47500

File tree

9 files changed

+0
-204
lines changed

9 files changed

+0
-204
lines changed

tests/NRedisStack.Tests/Bloom/BloomTests.cs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -369,28 +369,6 @@ public async Task TestCardAsync()
369369
await Assert.ThrowsAsync<RedisServerException>(() => bf.CardAsync("setKey"));
370370
}
371371

372-
[Fact]
373-
public void TestModulePrefixs1()
374-
{
375-
{
376-
var conn = ConnectionMultiplexer.Connect("localhost");
377-
IDatabase db = conn.GetDatabase();
378-
379-
var bf = db.FT();
380-
// ...
381-
conn.Dispose();
382-
}
383-
384-
{
385-
var conn = ConnectionMultiplexer.Connect("localhost");
386-
IDatabase db = conn.GetDatabase();
387-
388-
var bf = db.FT();
389-
// ...
390-
conn.Dispose();
391-
}
392-
}
393-
394372
[Fact]
395373
public void TestInsertArgsError()
396374
{

tests/NRedisStack.Tests/CountMinSketch/CmsTests.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -326,28 +326,5 @@ public void TestModulePrefixs()
326326

327327
Assert.NotEqual(cms1.GetHashCode(), cms2.GetHashCode());
328328
}
329-
330-
[Fact]
331-
public void TestModulePrefixs1()
332-
{
333-
{
334-
var conn = ConnectionMultiplexer.Connect("localhost");
335-
IDatabase db = conn.GetDatabase();
336-
337-
var cms = db.CMS();
338-
// ...
339-
conn.Dispose();
340-
}
341-
342-
{
343-
var conn = ConnectionMultiplexer.Connect("localhost");
344-
IDatabase db = conn.GetDatabase();
345-
346-
var cms = db.CMS();
347-
// ...
348-
conn.Dispose();
349-
}
350-
351-
}
352329
}
353330

tests/NRedisStack.Tests/CuckooFilter/CuckooTests.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -402,27 +402,4 @@ public void TestModulePrefixs()
402402

403403
Assert.NotEqual(cf1.GetHashCode(), cf2.GetHashCode());
404404
}
405-
406-
[Fact]
407-
public void TestModulePrefixs1()
408-
{
409-
{
410-
var conn = ConnectionMultiplexer.Connect("localhost");
411-
IDatabase db = conn.GetDatabase();
412-
413-
var cf = db.CF();
414-
// ...
415-
conn.Dispose();
416-
}
417-
418-
{
419-
var conn = ConnectionMultiplexer.Connect("localhost");
420-
IDatabase db = conn.GetDatabase();
421-
422-
var cf = db.CF();
423-
// ...
424-
conn.Dispose();
425-
}
426-
427-
}
428405
}

tests/NRedisStack.Tests/Graph/GraphTests.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -956,29 +956,6 @@ public void TestModulePrefixs()
956956
Assert.NotEqual(graph1.GetHashCode(), graph2.GetHashCode());
957957
}
958958

959-
[Fact]
960-
public void TestModulePrefixs1()
961-
{
962-
{
963-
var conn = ConnectionMultiplexer.Connect("localhost");
964-
IDatabase db = conn.GetDatabase();
965-
966-
var graph = db.GRAPH();
967-
// ...
968-
conn.Dispose();
969-
}
970-
971-
{
972-
var conn = ConnectionMultiplexer.Connect("localhost");
973-
IDatabase db = conn.GetDatabase();
974-
975-
var graph = db.GRAPH();
976-
// ...
977-
conn.Dispose();
978-
}
979-
980-
}
981-
982959
#endregion
983960

984961
#region AsyncTests

tests/NRedisStack.Tests/Json/JsonTests.cs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -121,28 +121,6 @@ public void TestModulePrefixs()
121121
Assert.NotEqual(json1.GetHashCode(), json2.GetHashCode());
122122
}
123123

124-
[Fact]
125-
public void TestModulePrefixs1()
126-
{
127-
{
128-
var conn = ConnectionMultiplexer.Connect("localhost");
129-
IDatabase db = conn.GetDatabase();
130-
131-
var json = db.JSON();
132-
// ...
133-
conn.Dispose();
134-
}
135-
136-
{
137-
var conn = ConnectionMultiplexer.Connect("localhost");
138-
IDatabase db = conn.GetDatabase();
139-
140-
var json = db.JSON();
141-
// ...
142-
conn.Dispose();
143-
}
144-
}
145-
146124
[Fact]
147125
public void TestResp()
148126
{

tests/NRedisStack.Tests/Search/SearchTests.cs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2754,26 +2754,4 @@ public void TestProfileCommandBuilder()
27542754
Assert.Equal(new object[] { "index", "SEARCH", "LIMITED", "QUERY", "*" }, search.Args);
27552755
Assert.Equal(new object[] { "index", "AGGREGATE", "LIMITED", "QUERY", "*" }, aggregate.Args);
27562756
}
2757-
2758-
[Fact]
2759-
public void TestModulePrefixs1()
2760-
{
2761-
{
2762-
var conn = ConnectionMultiplexer.Connect("localhost");
2763-
IDatabase db = conn.GetDatabase();
2764-
2765-
var ft = db.FT();
2766-
// ...
2767-
conn.Dispose();
2768-
}
2769-
2770-
{
2771-
var conn = ConnectionMultiplexer.Connect("localhost");
2772-
IDatabase db = conn.GetDatabase();
2773-
2774-
var ft = db.FT();
2775-
// ...
2776-
conn.Dispose();
2777-
}
2778-
}
27792757
}

tests/NRedisStack.Tests/Tdigest/TdigestTests.cs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -634,28 +634,6 @@ public void TestModulePrefixs()
634634
Assert.NotEqual(tdigest1.GetHashCode(), tdigest2.GetHashCode());
635635
}
636636

637-
[Fact]
638-
public void TestModulePrefixs1()
639-
{
640-
{
641-
var conn = ConnectionMultiplexer.Connect("localhost");
642-
IDatabase db = conn.GetDatabase();
643-
644-
var tdigest = db.TDIGEST();
645-
// ...
646-
conn.Dispose();
647-
}
648-
649-
{
650-
var conn = ConnectionMultiplexer.Connect("localhost");
651-
IDatabase db = conn.GetDatabase();
652-
653-
var tdigest = db.TDIGEST();
654-
// ...
655-
conn.Dispose();
656-
}
657-
658-
}
659637
private static double RandomValue()
660638
{
661639
Random random = new Random();

tests/NRedisStack.Tests/TimeSeries/TimeSeriesTests.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,4 @@ public void TestModulePrefixs()
3838

3939
Assert.NotEqual(ts1.GetHashCode(), ts2.GetHashCode());
4040
}
41-
42-
[Fact]
43-
public void TestModulePrefixs1()
44-
{
45-
{
46-
var conn = ConnectionMultiplexer.Connect("localhost");
47-
IDatabase db = conn.GetDatabase();
48-
49-
var ts = db.TS();
50-
// ...
51-
conn.Dispose();
52-
}
53-
54-
{
55-
var conn = ConnectionMultiplexer.Connect("localhost");
56-
IDatabase db = conn.GetDatabase();
57-
58-
var ts = db.TS();
59-
// ...
60-
conn.Dispose();
61-
}
62-
63-
}
64-
6541
}

tests/NRedisStack.Tests/TopK/TopKTests.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -100,27 +100,4 @@ public void TestModulePrefixs()
100100

101101
Assert.NotEqual(topk1.GetHashCode(), topk2.GetHashCode());
102102
}
103-
104-
[Fact]
105-
public void TestModulePrefixs1()
106-
{
107-
{
108-
var conn = ConnectionMultiplexer.Connect("localhost");
109-
IDatabase db = conn.GetDatabase();
110-
111-
var topk = db.TOPK();
112-
// ...
113-
conn.Dispose();
114-
}
115-
116-
{
117-
var conn = ConnectionMultiplexer.Connect("localhost");
118-
IDatabase db = conn.GetDatabase();
119-
120-
var topk = db.TOPK();
121-
// ...
122-
conn.Dispose();
123-
}
124-
125-
}
126103
}

0 commit comments

Comments
 (0)