From 8352001fabd81e175eb982dcafc00d077c1c991f Mon Sep 17 00:00:00 2001 From: Ben Kraft Date: Mon, 23 Aug 2021 13:00:41 -0700 Subject: [PATCH] Skip both problematic tests, and do it properly this time --- generate/generate_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generate/generate_test.go b/generate/generate_test.go index 93e0f19c..6b34efbb 100644 --- a/generate/generate_test.go +++ b/generate/generate_test.go @@ -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 {