[#206] pool: fix waitForContainerRemoved

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-04-12 17:14:48 +03:00 committed by Alex Vanin
parent 385f1b10f9
commit 53e064e556

View file

@ -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")
})
}