Skip to content

Commit 510d850

Browse files
author
Bernhard Buchwinkler
committed
Small testfix, cause test fails in release mode without a explicit keep alive for the reference
1 parent 60d5c6e commit 510d850

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PubSub.Tests/CoreHubTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public void Publish_CleansUpBeforeSending()
8686

8787
// assert
8888
Assert.AreEqual(1, hub.handlers.Count);
89+
GC.KeepAlive(liveSender);
8990
}
9091

9192

0 commit comments

Comments
 (0)