Skip to content

Commit 3440f9b

Browse files
committed
assert non-sharded in tests
1 parent 6366524 commit 3440f9b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/StackExchange.Redis.Tests/KeyNotificationTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ public void CreateKeySpaceNotification_Valid()
409409
var channel = RedisChannel.KeySpace("abc", 42);
410410
Assert.Equal("__keyspace@42__:abc", channel.ToString());
411411
Assert.False(channel.IsMultiNode);
412+
Assert.False(channel.IsSharded);
412413
Assert.False(channel.IsPattern);
413414
}
414415

@@ -422,6 +423,7 @@ public void CreateKeySpaceNotificationPattern(string? pattern, int? database, st
422423
var channel = RedisChannel.KeySpacePattern(pattern, database);
423424
Assert.Equal(expected, channel.ToString());
424425
Assert.True(channel.IsMultiNode);
426+
Assert.False(channel.IsSharded);
425427
Assert.True(channel.IsPattern);
426428
}
427429

@@ -435,6 +437,7 @@ public void CreateKeyEventNotification(KeyNotificationType type, int? database,
435437
var channel = RedisChannel.KeyEvent(type, database);
436438
Assert.Equal(expected, channel.ToString());
437439
Assert.True(channel.IsMultiNode);
440+
Assert.False(channel.IsSharded);
438441
if (isPattern)
439442
{
440443
Assert.True(channel.IsPattern);

0 commit comments

Comments
 (0)