Skip to content

Commit

Permalink
fix test implementation of with wildcard channel subscription, update…
Browse files Browse the repository at this point in the history
…d chancel method of EmitMessages effect
  • Loading branch information
mohitpubnub committed Nov 30, 2024
1 parent 87f1799 commit 3daa53f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ private object DeserializePayload(string key, object rawMessage)

public override bool IsBackground(EmitMessagesInvocation invocation) => false;

public override Task Cancel()
{
throw new NotImplementedException();
}
public override Task Cancel() => Task.CompletedTask;

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ public static void ThenSubscribeShouldReturnWildCardPresenceEventInWildcardPrese
bool receivedMessage = false;
bool receivedErrorMessage = true;

PNConfiguration config = new PNConfiguration(new UserId("mytestuuid"))
PNConfiguration config = new PNConfiguration(new UserId($"user{new Random().Next(10,100)}"))
{
PublishKey = PubnubCommon.PublishKey,
SubscribeKey = PubnubCommon.SubscribeKey,
Expand Down

0 comments on commit 3daa53f

Please sign in to comment.