Skip to content

Commit a409c2a

Browse files
committed
More stability fixes
1 parent e7d0de0 commit a409c2a

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

tests/StackExchange.Redis.Tests/BasicOpTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Diagnostics;
23
using System.Threading.Tasks;
34
using StackExchange.Redis.KeyspaceIsolation;
45
using Xunit;

tests/StackExchange.Redis.Tests/Issues/Issue2507.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Collections.Generic;
2-
using System.Linq;
1+
using System.Linq;
32
using System.Threading.Tasks;
43
using Xunit;
54

@@ -8,7 +7,7 @@ namespace StackExchange.Redis.Tests.Issues;
87
[Collection(NonParallelCollection.Name)]
98
public class Issue2507(ITestOutputHelper output, SharedConnectionFixture? fixture = null) : TestBase(output, fixture)
109
{
11-
[Fact]
10+
[Fact(Explicit = true)]
1211
public async Task Execute()
1312
{
1413
await using var conn = Create(shared: false);
@@ -36,7 +35,6 @@ public async Task Execute()
3635
Assert.Equal(key2, message.Message);
3736
Assert.True(queue.TryRead(out message), "Queue 3 Read failed");
3837
Assert.Equal(key3, message.Message);
39-
// Paralle test suites can be invalidating at the same time, so this is not guaranteed to be empty
40-
// Assert.False(queue.TryRead(out message), "Queue 4 Read succeeded");
38+
Assert.False(queue.TryRead(out message), "Queue 4 Read succeeded");
4139
}
4240
}

tests/StackExchange.Redis.Tests/ScriptingTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
#if NET // Since we're flushing and reloading scripts, only run this in once suite
2+
using System;
23
using System.Diagnostics;
34
using System.Linq;
45
using System.Security.Cryptography;
@@ -1152,3 +1153,4 @@ private static void TestNullValue(RedisResult? value)
11521153
Assert.Null((byte[]?)value);
11531154
}
11541155
}
1156+
#endif

0 commit comments

Comments
 (0)