diff --git a/cli/integration_test/v2/seeds.go b/cli/integration_test/v2/seeds.go index 9a17563f6cd..6b329aa1d79 100644 --- a/cli/integration_test/v2/seeds.go +++ b/cli/integration_test/v2/seeds.go @@ -104,7 +104,7 @@ func TestSeedsCreateCmd(t *testing.T, ec *cli.ExecutionContext) { // check if the contents match gotBytes, err := afero.ReadFile(tc.args.fs, *gotFilename) assert.NoError(t, err) - assert.Equal(t, string(gotBytes), string(inData.Bytes())) + assert.Equal(t, string(gotBytes), inData.String()) }) } } @@ -149,7 +149,7 @@ func TestSeedsApplyCmd(t *testing.T, ec *cli.ExecutionContext) { for _, tc := range tt { t.Run(tc.name, func(t *testing.T) { err := tc.opts.Run() - if (err != nil) && (tc.wantErr == false) { + if (err != nil) && (!tc.wantErr) { t.Fatalf("%s: expected no error got %v", tc.name, err) } })