mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
1d92789b4f
commit
a7d144fb34
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ func (ds *DiscoverySuite) TestWatch(c *testing.T) {
|
||||||
ch, errCh := d.Watch(stopCh)
|
ch, errCh := d.Watch(stopCh)
|
||||||
|
|
||||||
// It should fire an error since the first WatchTree call failed.
|
// 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.
|
// We have to drain the error channel otherwise Watch will get stuck.
|
||||||
go func() {
|
go func() {
|
||||||
for range errCh {
|
for range errCh {
|
||||||
|
|
Loading…
Reference in a new issue