Skip to content

Commit 23da5c8

Browse files
committed
Add comments
1 parent 780656a commit 23da5c8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/firestore/test/integration/browser/webchannel.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ const describeFn =
3333
xdescribe;
3434

3535
describeFn('WebChannel', () => {
36+
// Test does not run on Emulator because emulator does not impose restriction
37+
// on project id. This is likely because emulator does not require creation
38+
// of project or database before using it. However, it might wrong for
39+
// emulator to allow sharing the same stream across different projects and
40+
// databases.
3641
// eslint-disable-next-line no-restricted-properties
3742
(USE_EMULATOR ? it.skip : it)('receives error messages', done => {
3843
const projectId = DEFAULT_PROJECT_ID;
@@ -65,7 +70,7 @@ describeFn('WebChannel', () => {
6570

6671
// Wait until we receive data, then send a bad "addTarget" request, causing
6772
// the stream to be closed with an error. In this case, bad means having a
68-
// different database ID.
73+
// different project id.
6974
stream.onMessage(msg => {
7075
if (msg.targetChange) {
7176
// Assertion will fail when additional targets are added. This works so

scripts/emulator-testing/firestore-test-runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function runTest(port: number, projectId: string, withPersistence: boolean) {
3333
env: {
3434
...process.env,
3535
FIRESTORE_TARGET_BACKEND: 'emulator',
36-
FIRESTORE_EMULATOR_PORT: String(port),
36+
FIRESTORE_EMULATOR_PORT: port.toString(),
3737
FIRESTORE_EMULATOR_PROJECT_ID: projectId
3838
},
3939
stdio: 'inherit' as const

0 commit comments

Comments
 (0)