Skip to content

Commit e74fd80

Browse files
committed
test: include actual object in error message when MCP tool trigger is not found
1 parent 59f11cb commit e74fd80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/mcp_tool.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ func RunMCPPostgresListTriggersTest(t *testing.T, ctx context.Context, pool *pgx
815815
}{
816816
{
817817
name: "list all triggers (expecting the one we created)",
818-
args: map[string]any{},
818+
args: map[string]any{"limit": 1000},
819819
wantStatusCode: http.StatusOK,
820820
want: []map[string]any{wantTrigger},
821821
compareSubset: true,
@@ -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)