We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd5e7ed commit bcaef92Copy full SHA for bcaef92
cloud/linode/cloud_test.go
@@ -149,12 +149,8 @@ func TestNewCloud(t *testing.T) {
149
}()
150
_, err := newCloud()
151
t.Log(err)
152
- if !assert.Error(t, err, "expected error if nodebalancer-prefix is longer than 19 chars") {
153
- t.Errorf("No error when nodebalancer-prefix is longer 19 than")
154
- }
155
- if !assert.ErrorContains(t, err, "nodebalancer-prefix") {
156
- t.Errorf("Error message does not concern nodebalancer-prefix: %s", err)
157
+ require.Error(t, err, "expected error if nodebalancer-prefix is longer than 19 chars")
+ require.ErrorContains(t, err, "nodebalancer-prefix")
158
})
159
}
160
0 commit comments