test(account): 清理测试中任务表引用

This commit is contained in:
2026-09-28 17:17:12 +08:00
parent ab7b91387c
commit 4b8cd264cc
+2 -2
View File
@@ -140,7 +140,7 @@ func TestCreateAccountWithoutCookiesSkipsCredentialStore(t *testing.T) {
t.Cleanup(func() { _ = store.Close() })
applyHubMigrationsForPhaseATest(t, store)
if _, err := store.db.ExecContext(ctx, `
TRUNCATE audit_event, execution_attempt, operation_task, confirmation, content_draft,
TRUNCATE audit_event,
runtime_instance, environment_binding, network_exit, social_account, credential_reference,
browser_env, gateway RESTART IDENTITY CASCADE`); err != nil {
t.Fatal(err)
@@ -171,7 +171,7 @@ func TestAccountCredentialCommitResult(t *testing.T) {
}
applyHubMigrationsForPhaseATest(t, store)
if _, err := store.db.ExecContext(ctx, `
TRUNCATE audit_event, execution_attempt, operation_task, confirmation, content_draft,
TRUNCATE audit_event,
runtime_instance, environment_binding, network_exit, social_account, credential_reference,
browser_env, gateway RESTART IDENTITY CASCADE`); err != nil {
t.Fatal(err)