Skip to content

Commit 99deded

Browse files
Tibor VassthaJeztah
authored andcommitted
rm-gocheck: ErrorMatches -> assert.ErrorContains
sed -E -i 's#\bassert\.Assert\(c, (.*), check\.ErrorMatches,#assert.ErrorContains(c, \1,#g' \ -- "pkg/discovery/kv/kv_test.go" Signed-off-by: Tibor Vass <tibor@docker.com> (cherry picked from commit a7d144f) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 64a928a commit 99deded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/discovery/kv/kv_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func (ds *DiscoverySuite) TestWatch(c *testing.T) {
230230
ch, errCh := d.Watch(stopCh)
231231

232232
// It should fire an error since the first WatchTree call failed.
233-
assert.Assert(c, <-errCh, check.ErrorMatches, "test error")
233+
assert.ErrorContains(c, <-errCh, "test error")
234234
// We have to drain the error channel otherwise Watch will get stuck.
235235
go func() {
236236
for range errCh {

0 commit comments

Comments
 (0)