Skip to content

Commit

Permalink
Make one of the UI tests deterministic.
Browse files Browse the repository at this point in the history
  • Loading branch information
obmarg committed Feb 8, 2021
1 parent 003a56c commit 660c4c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tests/ui-tests/tests/cases/inline-fragment-exhaustiveness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ mod query_dsl {
graphql_type = "MyUnionType"
)]
enum MyUnionType {
Test(Test),
Nested(Nested),
TestStruct(Test),
Nestde(Nested),
}

#[derive(cynic::QueryFragment)]
Expand Down
10 changes: 5 additions & 5 deletions tests/ui-tests/tests/cases/inline-fragment-exhaustiveness.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error: Could not find a match for Test in MyUnionType. Did you mean TestStruct?
--> $DIR/inline-fragment-exhaustiveness.rs:16:5
error: Could not find a match for Nestde in MyUnionType. Did you mean Nested?
--> $DIR/inline-fragment-exhaustiveness.rs:17:5
|
16 | Test(Test),
| ^^^^
17 | Nestde(Nested),
| ^^^^^^

error: This InlineFragment is missing a variant for TestStruct. Either provide a variant for this type or add a fallback variant.
error: This InlineFragment is missing a variant for Nested. Either provide a variant for this type or add a fallback variant.
--> $DIR/inline-fragment-exhaustiveness.rs:9:10
|
9 | #[derive(cynic::InlineFragments)]
Expand Down

0 comments on commit 660c4c1

Please sign in to comment.