Skip to content

Commit

Permalink
test: use ip for host
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jul 6, 2023
1 parent 232e7b4 commit 1655d7b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ export const firestore = getFirestore(firebaseApp)
export const database = getDatabase(firebaseApp)
export const storage = getStorage(firebaseApp)

connectFirestoreEmulator(firestore, 'localhost', 8080)
connectDatabaseEmulator(database, 'localhost', 8081)
connectStorageEmulator(storage, 'localhost', 9199)
const HOST = '127.0.0.1'
connectFirestoreEmulator(firestore, HOST, 8080)
connectDatabaseEmulator(database, HOST, 8081)
connectStorageEmulator(storage, HOST, 9199)

let _id = 0
// wait this ms time after each operation to avoid race conditions
Expand Down

0 comments on commit 1655d7b

Please sign in to comment.