Skip to content

Commit

Permalink
rm-gocheck: ErrorMatches -> assert.ErrorContains
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tibor Vass committed Sep 9, 2019
1 parent 1d92789 commit a7d144f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/discovery/kv/kv_test.go
Expand Up @@ -230,7 +230,7 @@ func (ds *DiscoverySuite) TestWatch(c *testing.T) {
ch, errCh := d.Watch(stopCh)

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

0 comments on commit a7d144f

Please sign in to comment.