Skip to content

Commit

Permalink
Remove some redundant await syncPromise calls
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Sep 29, 2023
1 parent 2e35df6 commit 29e0f35
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions spec/integ/crypto/verification.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,6 @@ describe.each(Object.entries(CRYPTO_BACKENDS))("verification (%s)", (backend: st

// Send Bob the room keys
returnToDeviceMessageFromSync(toDeviceEvent);
await syncPromise(aliceClient);

// advance the clock, because the devicelist likes to sleep for 5ms during key downloads
await jest.advanceTimersByTimeAsync(10);
Expand Down Expand Up @@ -1066,7 +1065,6 @@ describe.each(Object.entries(CRYPTO_BACKENDS))("verification (%s)", (backend: st

// Send Bob the room keys
returnToDeviceMessageFromSync(toDeviceEvent);
await syncPromise(aliceClient);

// Wait for the message to be decrypted
await awaitDecryption(matrixEvent, { waitOnDecryptionFailure: true });
Expand Down

0 comments on commit 29e0f35

Please sign in to comment.