etcd
etcd copied to clipboard
fix: use require.NoError instead of t.Fatal(err) in tests package (part 1)
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)
}