diff --git a/packages/database-compat/test/database.test.ts b/packages/database-compat/test/database.test.ts index c0144a1a86e..fa21058591f 100644 --- a/packages/database-compat/test/database.test.ts +++ b/packages/database-compat/test/database.test.ts @@ -301,7 +301,9 @@ describe('Database Tests', () => { expect(() => { db.useEmulator('localhost', 1234); - }).to.throw(/FIREBASE FATAL ERROR: connectDatabaseEmulator() cannot initialize/); + }).to.throw( + 'FIREBASE FATAL ERROR: connectDatabaseEmulator() cannot initialize or alter the emulator configuration after the database instance has started.' + ); }); it('refFromURL returns an emulated ref with useEmulator', () => {