Skip to content

Commit e120bc5

Browse files
committed
test: include actual object in error message when MCP tool trigger is not found
1 parent 6cc7509 commit e120bc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/mcp_tool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ func RunMCPPostgresListTriggersTest(t *testing.T, ctx context.Context, pool *pgx
885885
}
886886
}
887887
if !found {
888-
t.Errorf("Expected trigger '%+v' not found in the list.", wantTrigger)
888+
t.Errorf("Expected trigger '%+v' not found in the list. Got: %+v", wantTrigger, gotObj)
889889
}
890890
} else {
891891
if !reflect.DeepEqual(tc.want, gotObj) {

0 commit comments

Comments
 (0)