etcd icon indicating copy to clipboard operation
etcd copied to clipboard

fix: use require.NoError instead of t.Fatal(err) in tests package (part 1)

Open mmorel-35 opened this issue 1 year ago • 5 comments
trafficstars

There is no linter for this. This uses testify instead of testing for With

require.NoError(t, err)

require.Error(t, err)

instead of

if err != nil {
    t.Fatal(err)
}


if err == nil {
    t.Fatal(err)
}

mmorel-35 avatar Oct 19 '24 09:10 mmorel-35