From bb9c61c8fd93f38b0db2d8add24523b3e87db566 Mon Sep 17 00:00:00 2001 From: Darren Ackers Date: Sat, 7 Oct 2023 18:48:55 +0100 Subject: [PATCH] fix(firestore-stripe-web-sdk): updating inconsitent ci testing --- firestore-stripe-web-sdk/.mocharc.js | 2 +- firestore-stripe-web-sdk/karma.conf.js | 2 +- firestore-stripe-web-sdk/test/emulator.spec.ts | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/firestore-stripe-web-sdk/.mocharc.js b/firestore-stripe-web-sdk/.mocharc.js index 8ba4e455..47bdac07 100644 --- a/firestore-stripe-web-sdk/.mocharc.js +++ b/firestore-stripe-web-sdk/.mocharc.js @@ -2,5 +2,5 @@ module.exports = { require: ["ts-node/register", "jsdom-global/register"], - timeout: 20000, + timeout: 60000, }; diff --git a/firestore-stripe-web-sdk/karma.conf.js b/firestore-stripe-web-sdk/karma.conf.js index bd9d9810..4b765ae2 100644 --- a/firestore-stripe-web-sdk/karma.conf.js +++ b/firestore-stripe-web-sdk/karma.conf.js @@ -54,7 +54,7 @@ const config = { client: { mocha: { - timeout: 20000, + timeout: 60000, }, }, diff --git a/firestore-stripe-web-sdk/test/emulator.spec.ts b/firestore-stripe-web-sdk/test/emulator.spec.ts index 498a5287..013d60f7 100644 --- a/firestore-stripe-web-sdk/test/emulator.spec.ts +++ b/firestore-stripe-web-sdk/test/emulator.spec.ts @@ -866,7 +866,9 @@ describe("Emulator tests", () => { "sub4" ); await setDoc(sub4, buildSubscriptionDocument(rawSubscriptionData.sub1)); + console.log("STEP ONE >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); await until(() => events.length > 1); + console.log("STEP TWO >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); expect(events.length).to.equal(2); expect(events[1]).to.eql({