Skip to content

Commit 07d0f0a

Browse files
committed
PR feedback
1 parent d50059e commit 07d0f0a

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

testing/go/foreign_keys_test.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,12 +1066,9 @@ func TestForeignKeys(t *testing.T) {
10661066
);`,
10671067
`ALTER TABLE "triggers" ADD CONSTRAINT "triggers_agent_fk" FOREIGN KEY ("tenant_id","project_id","agent_id") REFERENCES "public"."agent"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;`,
10681068
`select DOLT_COMMIT('-Am', 'add triggers table')`,
1069+
`select dolt_checkout('feature')`,
10691070
},
10701071
Assertions: []ScriptTestAssertion{
1071-
{
1072-
Query: "select dolt_checkout('feature')",
1073-
SkipResultsCheck: true,
1074-
},
10751072
{
10761073
Query: "insert into agent VALUES ('tenant1', 'agent2', 'project1', 'Agent Two', 'Second agent', null, null, '{\"model\": \"gpt-4\"}', '{}', 'You are another agent.', '{}', now(), now());",
10771074
},
@@ -1080,8 +1077,8 @@ func TestForeignKeys(t *testing.T) {
10801077
SkipResultsCheck: true,
10811078
},
10821079
{
1083-
Query: "select dolt_merge('main')",
1084-
SkipResultsCheck: true,
1080+
Query: "select strpos(dolt_merge('main')::text, 'merge successful') > 1;",
1081+
Expected: []sql.Row{{"t"}},
10851082
},
10861083
},
10871084
},

0 commit comments

Comments
 (0)