diff --git a/x-pack/test/functional/services/random.js b/x-pack/test/functional/services/random.js index 3ed3a945195f7..1245a278eab61 100644 --- a/x-pack/test/functional/services/random.js +++ b/x-pack/test/functional/services/random.js @@ -13,7 +13,7 @@ export function RandomProvider({ getService }) { log.debug('randomness seed: %j', seed); const chance = new Chance(seed); - return new class Random { + return new class Randomness { int(min = 3, max = 15) { return chance.integer({ min, max }); } diff --git a/x-pack/test/saml_api_integration/config.ts b/x-pack/test/saml_api_integration/config.ts index 8fb807016afeb..9d3029db013d3 100644 --- a/x-pack/test/saml_api_integration/config.ts +++ b/x-pack/test/saml_api_integration/config.ts @@ -20,7 +20,7 @@ export default async function({ readConfigFile }: FtrConfigProviderContext) { testFiles: [require.resolve('./apis')], servers: xPackAPITestsConfig.get('servers'), services: { - chance: kibanaAPITestsConfig.get('services.chance'), + randomness: kibanaAPITestsConfig.get('services.randomness'), es: kibanaAPITestsConfig.get('services.es'), supertestWithoutAuth: xPackAPITestsConfig.get('services.supertestWithoutAuth'), },