mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 08:02:15 +03:00
cli: fix lint issues for v2/integration_test/seeds.go (#5954)
https://github.com/hasura/graphql-engine/pull/5954
This commit is contained in:
parent
989832cfb5
commit
fd36bd1492
@ -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)
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user