Skip to content

Commit 75379ce

Browse files
committed
wip(integration-tests): Remove FIRESTORE_REGION
1 parent 6f482e5 commit 75379ce

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

integration_test/functions/src/v2/firestore-tests.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import {
77
onDocumentWritten,
88
} from "firebase-functions/v2/firestore";
99
import { sanitizeData } from "../utils";
10-
import { FIRESTORE_REGION } from "../region";
10+
import { REGION } from "../region";
1111

1212
export const firestoreOnDocumentCreatedTests = onDocumentCreated(
1313
{
1414
document: "tests/{documentId}",
15-
region: FIRESTORE_REGION,
15+
region: REGION,
1616
timeoutSeconds: 540,
1717
},
1818
async (event) => {
@@ -37,7 +37,7 @@ export const firestoreOnDocumentCreatedTests = onDocumentCreated(
3737
export const firestoreOnDocumentDeletedTests = onDocumentDeleted(
3838
{
3939
document: "tests/{documentId}",
40-
region: FIRESTORE_REGION,
40+
region: REGION,
4141
timeoutSeconds: 540,
4242
},
4343
async (event) => {
@@ -62,7 +62,7 @@ export const firestoreOnDocumentDeletedTests = onDocumentDeleted(
6262
export const firestoreOnDocumentUpdatedTests = onDocumentUpdated(
6363
{
6464
document: "tests/{documentId}",
65-
region: FIRESTORE_REGION,
65+
region: REGION,
6666
timeoutSeconds: 540,
6767
},
6868
async (event) => {
@@ -87,7 +87,7 @@ export const firestoreOnDocumentUpdatedTests = onDocumentUpdated(
8787
export const firestoreOnDocumentWrittenTests = onDocumentWritten(
8888
{
8989
document: "tests/{documentId}",
90-
region: FIRESTORE_REGION,
90+
region: REGION,
9191
timeoutSeconds: 540,
9292
},
9393
async (event) => {

integration_test/run.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ let {
2323
GOOGLE_ANALYTICS_API_SECRET,
2424
TEST_RUNTIME,
2525
REGION = "us-central1",
26-
FIRESTORE_REGION = "us-central1",
2726
STORAGE_REGION = "us-central1",
2827
} = process.env;
2928
const TEST_RUN_ID = `t${Date.now()}`;
@@ -79,7 +78,6 @@ const env = {
7978
GCLOUD_PROJECT: config.projectId,
8079
FIREBASE_CONFIG: JSON.stringify(firebaseConfig),
8180
REGION,
82-
FIRESTORE_REGION,
8381
STORAGE_REGION,
8482
};
8583

0 commit comments

Comments
 (0)