-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
Awaiting PaymentAuto-added when associated PR is deployed to productionAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.Something is broken. Auto assigns a BugZero manager.DailyKSv2KSv2ExternalAdded to denote the issue can be worked on by a contributorAdded to denote the issue can be worked on by a contributor
Description
Problem
It seems like the SubscriptionUtils tests are flaky:
Summary of all failing tests
FAIL tests/unit/SubscriptionUtilsTest.ts (32.87 s)
● SubscriptionUtils › getSubscriptionStatus › should return POLICY_OWNER_WITH_AMOUNT_OWED status
expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 1
Object {
- "isError": true,
- "status": "policy_owner_with_amount_owed",
+ "status": "policy_owner_with_amount_owed_overdue",
}
337 | });
338 |
> 339 | expect(SubscriptionUtils.getSubscriptionStatus()).toEqual({
| ^
340 | status: PAYMENT_STATUS.POLICY_OWNER_WITH_AMOUNT_OWED,
341 | isError: true,
342 | });
at Object.toEqual (tests/unit/SubscriptionUtilsTest.ts:339:63)
at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
● SubscriptionUtils › getSubscriptionStatus › should return OWNER_OF_POLICY_UNDER_INVOICING status
expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "status": "owner_of_policy_under_invoicing",
+ "status": "owner_of_policy_under_invoicing_overdue",
}
370 | });
371 |
> 372 | expect(SubscriptionUtils.getSubscriptionStatus()).toEqual({
| ^
373 | status: PAYMENT_STATUS.OWNER_OF_POLICY_UNDER_INVOICING,
374 | });
375 | });
at Object.toEqual (tests/unit/SubscriptionUtilsTest.ts:372:63)
at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
Here is a run
Solution
Fix the flakiness cc @JKobrynski @blimpich @mananjadhav coming from #44072
Issue Owner
Current Issue Owner: @Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~01fc7c3dad62f3576b
- Upwork Job ID: 1816873686533642172
- Last Price Increase: 2024-07-26
Issue Owner
Current Issue Owner: @twisterdotcomReactions are currently unavailable
Metadata
Metadata
Labels
Awaiting PaymentAuto-added when associated PR is deployed to productionAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.Something is broken. Auto assigns a BugZero manager.DailyKSv2KSv2ExternalAdded to denote the issue can be worked on by a contributorAdded to denote the issue can be worked on by a contributor