Skip to content

Commit 4985d1f

Browse files
committed
fix test missing migration key
1 parent c05fdf6 commit 4985d1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/StackExchange.Redis.Tests/ClusterTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,7 @@ public async Task TestShardedPubsubSubscriberAgainsHashSlotMigration()
810810
using var conn = Create(allowAdmin: true, keepAlive: 1, connectTimeout: 3000, shared: false);
811811
Assert.True(conn.IsConnected);
812812
var db = conn.GetDatabase();
813+
db.StringSet("testShardChannel", "testValue");
813814
Assert.Equal(0, await db.PublishAsync(channel, "noClientReceivesThis"));
814815
await Task.Delay(50); // let the sub settle (this isn't needed on RESP3, note)
815816

@@ -873,6 +874,7 @@ private void MigrateSlotForTestShardChannel(bool rollback)
873874
IServer? serverWithPort7000 = null;
874875
IServer? serverWithPort7001 = null;
875876

877+
876878
string nodeIdForPort7000 = "780813af558af81518e58e495d63b6e248e80adf";
877879
string nodeIdForPort7001 = "ea828c6074663c8bd4e705d3e3024d9d1721ef3b";
878880
foreach (var server in servers)

0 commit comments

Comments
 (0)