Skip to content

Commit

Permalink
test: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyBelym committed Sep 28, 2022
1 parent c56213f commit 1dd6d34
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/server/util-test.js
Expand Up @@ -594,23 +594,23 @@ describe('Utils', () => {

chromeArgs = buildChromeArgs({ config, cdpPort, platformArgs, tempProfileDir, isContainerized: false });
containerizedChromeFlags = chromeArgs.match(IN_DOCKER_FLAGS_RE);

expect(containerizedChromeFlags).eql(null);

chromeArgs = buildChromeArgs({ config, cdpPort, platformArgs, tempProfileDir, isContainerized: true });
containerizedChromeFlags = chromeArgs.match(IN_DOCKER_FLAGS_RE);

expect(containerizedChromeFlags.length).eql(1);

// NOTE: Flag should not be duplicated
config.userArgs = '--no-sandbox --disable-dev-shm-usage';
chromeArgs = buildChromeArgs({ config, cdpPort, platformArgs, tempProfileDir, isContainerized: true });
containerizedChromeFlags = chromeArgs.match(SANDBOX_FLAG_RE);

expect(containerizedChromeFlags.length).eql(1);

containerizedChromeFlags = chromeArgs.match(DISABLE_DEV_SHM_USAGE_RE);

expect(containerizedChromeFlags.length).eql(1);
});

Expand Down

0 comments on commit 1dd6d34

Please sign in to comment.