From a01332fa8ed47dc6acf97250022bea246dd9387a Mon Sep 17 00:00:00 2001 From: Curtis Layne Date: Wed, 18 Sep 2024 11:29:53 -0700 Subject: [PATCH] Fix lint errors --- plugin/federation/federation.go | 2 +- plugin/federation/federation_test.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugin/federation/federation.go b/plugin/federation/federation.go index 7919be31e5..f7a4d6be27 100644 --- a/plugin/federation/federation.go +++ b/plugin/federation/federation.go @@ -640,7 +640,7 @@ func (f *Federation) generateExplicitRequires( func buildResolverSDL( resolver *EntityResolver, multi bool, -) (resolverSDL string, entityResolverInputSDL string) { +) (resolverSDL, entityResolverInputSDL string) { if multi { entityResolverInputSDL = buildEntityResolverInputDefinitionSDL(resolver) resolverSDL := fmt.Sprintf("\t%s(reps: [%s]!): [%s]", resolver.ResolverName, resolver.InputTypeName, resolver.ReturnTypeName) diff --git a/plugin/federation/federation_test.go b/plugin/federation/federation_test.go index 6d237321ca..486d1304a3 100644 --- a/plugin/federation/federation_test.go +++ b/plugin/federation/federation_test.go @@ -21,7 +21,7 @@ func TestNew(t *testing.T) { }, } plugin, err := New(1, cfg) - assert.NoError(t, err) + require.NoError(t, err) assert.NotNil(t, plugin) }) @@ -36,7 +36,7 @@ func TestNew(t *testing.T) { CallArgumentDirectivesWithNull: true, } plugin, err := New(1, cfg) - assert.NoError(t, err) + require.NoError(t, err) assert.NotNil(t, plugin) }) @@ -51,7 +51,7 @@ func TestNew(t *testing.T) { CallArgumentDirectivesWithNull: true, } plugin, err := New(1, cfg) - assert.Error(t, err) + require.Error(t, err) assert.Nil(t, plugin) }) @@ -66,7 +66,7 @@ func TestNew(t *testing.T) { CallArgumentDirectivesWithNull: false, } plugin, err := New(1, cfg) - assert.Error(t, err) + require.Error(t, err) assert.Nil(t, plugin) }) @@ -82,7 +82,7 @@ func TestNew(t *testing.T) { } plugin, err := New(1, cfg) - assert.Error(t, err) + require.Error(t, err) assert.Nil(t, plugin) }) }