diff --git a/suites/apis/oidcClientTest.js b/suites/apis/oidcClientTest.js index 19e58aa50..6af01d446 100644 --- a/suites/apis/oidcClientTest.js +++ b/suites/apis/oidcClientTest.js @@ -4,6 +4,7 @@ const { expect } = require('chai'); const { Bash } = require('../../utils/bash.js'); const { checkPod, runUserSync, getAccessTokenHeader } = require('../../utils/apiUtil.js'); const { Client } = require('../../services/apis/fence/fenceProps.js'); +const { sleepMS } = require('../../utils/apiUtil.js'); const bash = new Bash(); @@ -87,6 +88,8 @@ Scenario('OIDC Client Rotation @clientRotation @requires-indexd', async ({ I, fe // to run usersync here now that the client has been created await runUserSync(); await checkPod(I, 'usersync', 'gen3job,job-name=usersync'); + // wait for 10secs after usersync + await sleepMS(10000); // check that both sets of credentials work: // - we can get an access token using the creds