[#206] pool: fix waitForContainerRemoved
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
385f1b10f9
commit
53e064e556
1 changed files with 2 additions and 1 deletions
|
@ -1699,7 +1699,8 @@ func waitForContainerRemoved(ctx context.Context, cli client, cnrID *cid.ID, wai
|
|||
|
||||
return waitFor(ctx, waitParams, func(ctx context.Context) bool {
|
||||
_, err := cli.containerGet(ctx, prm)
|
||||
return sdkClient.IsErrContainerNotFound(err)
|
||||
return sdkClient.IsErrContainerNotFound(err) ||
|
||||
err != nil && strings.Contains(err.Error(), "not found")
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue