diff --git a/tools/thothctl/internal/workspaceops/operations_test.go b/tools/thothctl/internal/workspaceops/operations_test.go index 9bd7496a..843f1cbe 100644 --- a/tools/thothctl/internal/workspaceops/operations_test.go +++ b/tools/thothctl/internal/workspaceops/operations_test.go @@ -58,7 +58,7 @@ func TestExecuteSuggestFksStreamsSQLFileContentsOnStdin(t *testing.T) { t.Fatalf("sqlFiles = %#v", envelope["fromSql"]) } file, ok := sqlFiles[0].(map[string]any) - if !ok || file["contents"] != "select 1;\n" { + if !ok || file["sql"] != "select 1;\n" || file["name"] != "query.sql" { t.Fatalf("sql file envelope = %#v", sqlFiles[0]) } return compose.Result{Stdout: successResult("schema-suggest-fks")}, nil