Skip to content

Commit

Permalink
Add some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
brizental committed Jan 25, 2023
1 parent 003e9d6 commit 925bf1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/functional/testAddons.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ describe('Addons', function() {
.body = mockDetails;
};

it(`is message shown when expiration happens ${Date.now() - expiresOn}ms from now`, async () => {
it(`is message shown when expiration happens ${expiresOn - Date.now()}ms from now`, async () => {
// Load all production addons.
// These are loaded all together, so we don't know the exact number of addons.
await vpn.resetAddons('prod');
Expand All @@ -185,6 +185,7 @@ describe('Addons', function() {
await vpn.waitForCondition(async () => {
const loadedMessages = await vpn.messages();
const isSubscriptionExpiringMessageAvailable = loadedMessages.includes("message_subscription_expiring");
console.log(loadedMessages)
return isMessageShown ? isSubscriptionExpiringMessageAvailable : !isSubscriptionExpiringMessageAvailable;
});
});
Expand Down

0 comments on commit 925bf1c

Please sign in to comment.