From 7e4561b469cedbdffed3be8c56b2cc4f405fc69f Mon Sep 17 00:00:00 2001 From: Maurice Date: Tue, 17 Nov 2026 14:24:27 +0100 Subject: [PATCH] test(db): name the restore's plugin schemas as plugin ids allow --- server/tests/unit/db/engine/postgres/plugin-schema.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/tests/unit/db/engine/postgres/plugin-schema.test.ts b/server/tests/unit/db/engine/postgres/plugin-schema.test.ts index fbb494ce5..97ee35a26 100644 --- a/server/tests/unit/db/engine/postgres/plugin-schema.test.ts +++ b/server/tests/unit/db/engine/postgres/plugin-schema.test.ts @@ -50,11 +50,11 @@ describe('plugin schema names', () => { }); it("PGSCHEMA-005: a restore drops only the role's own plugin schemas, then creates the dump's", () => { - const sql = pluginSchemasSql(['trek_plugin_a', 'trek_plugin_b']); + const sql = pluginSchemasSql(['trek_plugin_alpha', 'trek_plugin_beta']); expect(sql).toContain("starts_with(nspname, 'trek_plugin_')"); expect(sql).toContain('pg_get_userbyid(nspowner) = current_user'); expect(sql).toContain("EXECUTE format('DROP SCHEMA %I CASCADE', r.nspname);"); - expect(sql.endsWith('CREATE SCHEMA "trek_plugin_a";\nCREATE SCHEMA "trek_plugin_b";\n')).toBe(true); + expect(sql.endsWith('CREATE SCHEMA "trek_plugin_alpha";\nCREATE SCHEMA "trek_plugin_beta";\n')).toBe(true); expect(pluginSchemasSql([])).not.toContain('CREATE SCHEMA'); expect(() => pluginSchemasSql(['auth'])).toThrow(/is not a plugin schema name/); });