cli: fix lint issues for v2/integration_test/seeds.go (#5954)

https://github.com/hasura/graphql-engine/pull/5954
This commit is contained in:
Ayan Banerjee 2020-10-29 11:43:53 +05:30 committed by GitHub
parent 989832cfb5
commit fd36bd1492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}
})