From 53e064e5565c1354e0652195cbc0f2aa0031a113 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Tue, 12 Apr 2022 17:14:48 +0300 Subject: [PATCH] [#206] pool: fix waitForContainerRemoved Signed-off-by: Denis Kirillov --- pool/pool.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pool/pool.go b/pool/pool.go index 4f09a1ac..216f178f 100644 --- a/pool/pool.go +++ b/pool/pool.go @@ -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") }) }