Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test: qm-scope-writes pre-migration oauth_clients case drops the snapshot table first (stress gate, GBRAIN_PGLITE_SNAPSHOT)
garrytan4a843dfc712c
diff --git a/test/qm-scope-writes.test.ts b/test/qm-scope-writes.test.tsindex 71efce30f5..1a14b2a5b7 100644--- a/test/qm-scope-writes.test.ts+++ b/test/qm-scope-writes.test.ts@@ -444,6 +444,7 @@ describe('CLI client registration keeps the pre-migration fallback', () => {afterAll(async () => { await engine.disconnect(); });test('register-client on an oauth_clients table without source_id still registers when given a transaction', async () => {+ await engine.executeRaw('DROP TABLE IF EXISTS oauth_clients CASCADE');await engine.executeRaw(`CREATE TABLE oauth_clients (client_id TEXT PRIMARY KEY, client_secret_hash TEXT, client_name TEXT NOT NULL,redirect_uris TEXT[], grant_types TEXT[], scope TEXT, token_endpoint_auth_method TEXT, client_id_issued_at BIGINT, deleted_at TIMESTAMPTZ)`);const sql = sqlQueryForEngine(engine);