Skip to content

Commit

Permalink
Attempt at deflaking amp-consent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrozenberg committed Mar 6, 2024
1 parent 18cf6fe commit bd8ee73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/amp-consent/0.1/test/test-amp-consent.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {xhrServiceForTesting} from '#service/xhr-impl';

import {dev, user} from '#utils/log';

import {macroTask} from '#testing/helpers';
import {macroTask, sleep} from '#testing/helpers';

import {
registerServiceBuilder,
Expand Down Expand Up @@ -1161,7 +1161,7 @@ describes.realWin(

beforeEach(async () => {
ampConsent.buildCallback();
await macroTask();
await sleep(50);
managerSpy = env.sandbox.spy(
ampConsent.consentStateManager_,
'updateConsentInstancePurposes'
Expand Down

0 comments on commit bd8ee73

Please sign in to comment.