Skip to content

Commit 7015f75

Browse files
committed
chore: optimize the error msg
1 parent fc7dadf commit 7015f75

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/e2e/common/node/runtime.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ while true; do sleep 1; done
129129

130130
ginkgo.By(fmt.Sprintf("Container '%s': should be possible to delete", testContainer.Name))
131131
gomega.Expect(terminateContainer.Delete(ctx)).To(gomega.Succeed())
132-
errMsg := fmt.Sprintf("container '%s': should have been terminated by now.", testContainer.Name)
133-
gomega.Eventually(ctx, terminateContainer.Present, ContainerStatusRetryTimeout, ContainerStatusPollInterval).Should(gomega.BeFalseBecause(errMsg))
132+
gomega.Eventually(ctx, terminateContainer.Present, ContainerStatusRetryTimeout, ContainerStatusPollInterval).Should(gomega.BeFalseBecause("container '%s': should have been terminated by now.", testContainer.Name))
134133
}
135134
})
136135
})

0 commit comments

Comments
 (0)