Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestAddQueriesToSchema seems to be flaky #4111

Open
alecthomas opened this issue Jan 20, 2025 · 0 comments
Open

TestAddQueriesToSchema seems to be flaky #4111

alecthomas opened this issue Jan 20, 2025 · 0 comments
Assignees

Comments

@alecthomas
Copy link
Collaborator

=== FAIL: internal/sqlc TestAddQueriesToSchema (4.04s)
    /Users/aat/dev/ftl/internal/sqlc/sqlc_test.go:109: Expected values to be equal:
           Name: "test",
           Decls: []schema.Decl{
             &schema.Data{
        -      Name: "GetRequestDataResult",
        +      Name: "CreateRequestQuery",
               Fields: []*schema.Field{
                 {
                   Name: "data",
        @@ -17,25 +17,8 @@
                 },
               },
             },
        -    &schema.Verb{
        -      Name: "getRequestData",
        -      Request: &schema.Unit{
        -      },
        -      Response: &schema.Array{
        -        Element: &schema.Ref{
        -          Module: "test",
        -          Name: "GetRequestDataResult",
        -        },
        -      },
        -      Metadata: []schema.Metadata{
        -        &schema.MetadataSQLQuery{
        -          Command: "many",
        -          Query: "SELECT data FROM requests",
        -        },
        -      },
        -    },
             &schema.Data{
        -      Name: "CreateRequestQuery",
        +      Name: "GetRequestDataResult",
               Fields: []*schema.Field{
                 {
                   Name: "data",
        @@ -65,5 +47,22 @@
                 },
               },
             },
        +    &schema.Verb{
        +      Name: "getRequestData",
        +      Request: &schema.Unit{
        +      },
        +      Response: &schema.Array{
        +        Element: &schema.Ref{
        +          Module: "test",
        +          Name: "GetRequestDataResult",
        +        },
        +      },
        +      Metadata: []schema.Metadata{
        +        &schema.MetadataSQLQuery{
        +          Command: "many",
        +          Query: "SELECT data FROM requests",
        +        },
        +      },
        +    },
           },
         }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants