Skip to content

Commit c1877d5

Browse files
committed
Let get_delete_token run first
1 parent b491044 commit c1877d5

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

integration/messaging/test/test-receive-foreground.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ const createPermittedWebDriver = require('./utils/createPermittedWebDriver');
2828
const TEST_DOMAINS = ['valid-vapid-key'];
2929
const TIMEOUT_FOREGROUND_MESSAGE_TEST_UNIT_MILLISECONDS = 120000;
3030

31+
// Getting and deleting token is the entry step of using FM SDK. Let it run first and fail quickly.
32+
require('./test-token-delete');
33+
3134
describe('Firebase Messaging Integration Tests > Test Foreground Receive', function () {
3235
this.retries(2);
3336
let globalWebDriver;

integration/messaging/test/test-token-update.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ const getErrors = require('./utils/getErrors');
2828
const TEST_SUITE_TIMEOUT_MS = 70000;
2929
const TEST_DOMAIN = 'valid-vapid-key';
3030

31+
// Getting and deleting token is the entry step of using FM SDK. Let it run first and fail quickly.
32+
require('./test-token-delete');
33+
3134
describe('Firebase Messaging Integration Tests > update a token', function () {
3235
this.timeout(TEST_SUITE_TIMEOUT_MS);
3336
this.retries(2);

integration/messaging/test/test-useDefaultServiceWorker.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ const createPermittedWebDriver = require('./utils/createPermittedWebDriver');
2424
const TEST_DOMAIN = 'default-sw';
2525
const TEST_SUITE_TIMEOUT_MS = 70000;
2626

27+
// Getting and deleting token is the entry step of using FM SDK. Let it run first and fail quickly.
28+
require('./test-token-delete');
29+
2730
describe(`Firebase Messaging Integration Tests > Use 'firebase-messaging-sw.js' by default`, function () {
2831
this.timeout(TEST_SUITE_TIMEOUT_MS);
2932

integration/messaging/test/test-useValidManifest.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ const createPermittedWebDriver = require('./utils/createPermittedWebDriver');
2424
const TEST_DOMAIN = 'valid-manifest';
2525
const TEST_SUITE_TIMEOUT_MS = 70000;
2626

27+
// Getting and deleting token is the entry step of using FM SDK. Let it run first and fail quickly.
28+
require('./test-token-delete');
29+
2730
describe(`Firebase Messaging Integration Tests > Use 'use valid manifest`, function () {
2831
this.timeout(TEST_SUITE_TIMEOUT_MS);
2932

0 commit comments

Comments
 (0)