Skip to content

Test failure with ghc-9.6 #824

@TristanCacqueray

Description

@TristanCacqueray

When running the test with the latest GHC, the morpheus-graphql-app package fails with:

morpheus-graphql-app> Running 1 test suites...
morpheus-graphql-app> Test suite morpheus-graphql-app-test: RUNNING...
morpheus-graphql-app> App Tests
morpheus-graphql-app>   merge
morpheus-graphql-app>     schema
morpheus-graphql-app>       simple-query
morpheus-graphql-app>         simple-query:                      OK
morpheus-graphql-app>         query:                             OK
morpheus-graphql-app>       query-subscription-mutation
morpheus-graphql-app>         query-subscription-mutation:       OK
morpheus-graphql-app>         query:                             OK
morpheus-graphql-app>         mutation:                          OK
morpheus-graphql-app>   api
morpheus-graphql-app>     validation
morpheus-graphql-app>       input-coercion
morpheus-graphql-app>         list
morpheus-graphql-app>           signle-value:                    OK
morpheus-graphql-app>           list-single:                     OK
morpheus-graphql-app>           list-many:                       OK
morpheus-graphql-app>       fragment
morpheus-graphql-app>         on-union-type:                     OK
morpheus-graphql-app>         on-type:                           OK
morpheus-graphql-app>         on-interface-type-casting-inline:  OK
morpheus-graphql-app>         on-interface-type-casting:         OK
morpheus-graphql-app>         on-interface-inline:               OK
morpheus-graphql-app>         on-interface-fail-without-casting: OK
morpheus-graphql-app>         on-interface:                      OK
morpheus-graphql-app>         fail-unknown-field-on-interface:   OK
morpheus-graphql-app>     deity
morpheus-graphql-app>       simple:                              OK
morpheus-graphql-app>       interface:                           FAIL
morpheus-graphql-app>         src/Test/Morpheus/Utils.hs:91:
morpheus-graphql-app>         expected:
morpheus-graphql-app>          {"data":{"deity":{"enumValues":null,"fields":[{"args":[],"deprecationReason":null,"isDeprecated":false,"name":"name","type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},{"args":[],"deprecationReason":null,"isDeprecated":false,"name":"power","type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","n\
ame":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}}}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"Character","ofType":null},{"kind":"INTERFACE","name":"Supernatural","ofType":null}],"kind":"OBJECT","name":"Deity","possibleTypes":null},"interface":{"enumValues":null,"fields":[{"args":[],"deprecationReason"\
:null,"isDeprecated":false,"name":"name","type":{"kind":"SCALAR","name":"String","ofType":null}}],"inputFields":null,"interfaces":null,"kind":"INTERFACE","name":"Character","possibleTypes":[{"kind":"OBJECT","name":"Deity","ofType":null},{"kind":"OBJECT","name":"Hero","ofType":null}]}}}
morpheus-graphql-app>          but got:
morpheus-graphql-app>          {"data":{"deity":{"enumValues":null,"fields":[{"args":[],"deprecationReason":null,"isDeprecated":false,"name":"name","type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},{"args":[],"deprecationReason":null,"isDeprecated":false,"name":"power","type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","n\
ame":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}}}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"Character","ofType":null},{"kind":"INTERFACE","name":"Supernatural","ofType":null}],"kind":"OBJECT","name":"Deity","possibleTypes":null},"interface":{"enumValues":null,"fields":[{"args":[],"deprecationReason"\
:null,"isDeprecated":false,"name":"name","type":{"kind":"SCALAR","name":"String","ofType":null}}],"inputFields":null,"interfaces":null,"kind":"INTERFACE","name":"Character","possibleTypes":[{"kind":"OBJECT","name":"Hero","ofType":null},{"kind":"OBJECT","name":"Deity","ofType":null}]}}}
morpheus-graphql-app>         Use -p '/deity.interface/' to rerun this test only.
morpheus-graphql-app>   named-resolvers
morpheus-graphql-app>     realms:                                OK
morpheus-graphql-app>     realm-simple:                          OK
morpheus-graphql-app>     realm-ext-by-id:                       OK
morpheus-graphql-app>     realm-by-id:                           OK
morpheus-graphql-app>     entity-ext-by-id:                      OK
morpheus-graphql-app>     entity-by-id:                          OK
morpheus-graphql-app>     entities:                              OK
morpheus-graphql-app>     deity-simple:                          OK
morpheus-graphql-app>     deity-ext-by-id:                       OK
morpheus-graphql-app>     deity-by-id:                           OK
morpheus-graphql-app>     deities-ext:                           OK
morpheus-graphql-app>     deities:                               OK
morpheus-graphql-app>   api-constraints
morpheus-graphql-app>     under-limit:                           OK
morpheus-graphql-app>     success:                               OK
morpheus-graphql-app>     over-limit:                            OK
morpheus-graphql-app>     forbidden:                             OK
morpheus-graphql-app>   batching
morpheus-graphql-app>     objects-lists-fields:                  OK
morpheus-graphql-app>     objects-fields:                        OK
morpheus-graphql-app>     object-lists:                          OK
morpheus-graphql-app>   execution
morpheus-graphql-app>     single:                                OK
morpheus-graphql-app>     many:                                  OK
morpheus-graphql-app> 1 out of 39 tests failed (0.03s)
morpheus-graphql-app> Test suite morpheus-graphql-app-test: FAIL

Here is the diff of the expected/got:

--- #<buffer test-got>
+++ #<buffer test-expected>
@@ -81,12 +81,12 @@
       "possibleTypes": [
         {
           "kind": "OBJECT",
-          "name": "Hero",
+          "name": "Deity",
           "ofType": null
         },
         {
           "kind": "OBJECT",
-          "name": "Deity",
+          "name": "Hero",
           "ofType": null
         }
       ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions