Skip to content

Commit 4e2388c

Browse files
authored
Merge pull request #182 from mgoodfellow/reset-subscriptions-on-teardown
Make sure subscriptions are cleared on ResetState
2 parents 508d1a8 + 0b7c66e commit 4e2388c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/CacheTower.Tests/Utils/RedisHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public static ConnectionMultiplexer GetConnection()
4343
public static void ResetState()
4444
{
4545
GetConnection().GetServer(Endpoint).FlushDatabase();
46+
GetConnection().GetSubscriber().UnsubscribeAll();
4647

4748
//.NET Framework doesn't support `Clear()` on Errors so we do it manually
4849
while (!Errors.IsEmpty)

0 commit comments

Comments
 (0)