Skip to content

Commit

Permalink
Stabilize Circle CI Build Job (#5208)
Browse files Browse the repository at this point in the history
* run only userId module tests

* stub call to coreStorage.getCookie

* remove setCookie statement that adds nothing to the test
  • Loading branch information
Fawke authored May 21, 2020
1 parent 25b7189 commit 67a1b1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/spec/modules/userId_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ describe('User ID', function() {
sandbox = sinon.createSandbox();
sandbox.stub(global, 'setTimeout').returns(2);
sandbox.stub(events, 'on');
sandbox.stub(coreStorage, 'getCookie');

// remove cookie
coreStorage.setCookie('MOCKID', '', EXPIRED_COOKIE_DATE);
Expand Down Expand Up @@ -626,11 +627,10 @@ describe('User ID', function() {
});

it('does not delay auction if there are no ids to fetch', function() {
coreStorage.setCookie('MOCKID', JSON.stringify({'MOCKID': '123456778'}), new Date(Date.now() + 5000).toUTCString());

coreStorage.getCookie.withArgs('MOCKID').returns('123456778');
config.setConfig({
usersync: {
auctionDelay: 200,
auctionDelay: 33,
syncDelay: 77,
userIds: [{
name: 'mockId', storage: { name: 'MOCKID', type: 'cookie' }
Expand Down

0 comments on commit 67a1b1e

Please sign in to comment.