mirror of
https://github.com/containerd/containerd.git
synced 2026-07-07 23:30:09 +00:00
When VeriftImage returns an error, the first return value may be set to nil (this is the case for timeouts). When that is the case, it makes no point trying to access its fields later in the test. Let's use testify/require instead of testify/assert here to ensure the test halts upon failure. Signed-off-by: Athos Ribeiro <athos.ribeiro@canonical.com>