Skip to content

Commit

Permalink
test(contract): add small delay for event engine log check
Browse files Browse the repository at this point in the history
  • Loading branch information
parfeon committed Apr 18, 2024
1 parent 8a9ac53 commit d732b4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/contract/definitions/event-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ class EventEngineSteps {
this.messagePromise = new Promise<MessageEvent>((resolveMessage) => {
this.pubnub?.addListener({
message(messageEvent) {
resolveMessage(messageEvent);
setTimeout(() => resolveMessage(messageEvent), 100);
},
status(statusEvent) {
resolveStatus(statusEvent);
setTimeout(() => resolveStatus(statusEvent), 100);
},
});

Expand All @@ -191,10 +191,10 @@ class EventEngineSteps {
this.messagePromise = new Promise<MessageEvent>((resolveMessage) => {
this.pubnub?.addListener({
message(messageEvent) {
resolveMessage(messageEvent);
setTimeout(() => resolveMessage(messageEvent), 100);
},
status(statusEvent) {
resolveStatus(statusEvent);
setTimeout(() => resolveStatus(statusEvent), 100);
},
});

Expand Down

0 comments on commit d732b4e

Please sign in to comment.