From 753a8fbb8130507877e24304302b6b34b0850a87 Mon Sep 17 00:00:00 2001 From: spalger Date: Wed, 30 Oct 2019 11:16:58 -0700 Subject: [PATCH] fix another reference to chance service --- x-pack/test/functional/services/random.js | 2 +- x-pack/test/saml_api_integration/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'), },