Skip to content

Commit

Permalink
Skip both problematic tests, and do it properly this time
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminjkraft committed Aug 23, 2021
1 parent a62553b commit 8352001
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generate/generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ func TestGenerate(t *testing.T) {
}

if strings.HasPrefix(runtime.Version(), "go1.13") &&
sourceFilename == "InterfaceNesting.graphql" {
(sourceFilename == "InterfaceNesting.graphql" ||
sourceFilename == "InterfaceNoFragments.graphql") {
// gofmt on 1.13 formats this slightly differently.
// TODO(benkraft): Vendor in a specific version of gofmt,
// to use for all Go versions. (Maybe only for tests.)
t.Skip("skipping because go1.13 formats them differently")
}

for filename, content := range generated {
Expand Down

0 comments on commit 8352001

Please sign in to comment.