Skip to content

Commit 4054230

Browse files
authored
Merge pull request #4994 from kzys/kill-before-buf
test: stop containerd before accessing the stdout
2 parents f07e181 + 310e590 commit 4054230

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ func TestMain(m *testing.M) {
139139
// pull a seed image
140140
log.G(ctx).WithField("image", testImage).Info("start to pull seed image")
141141
if _, err = client.Pull(ctx, testImage, WithPullUnpack); err != nil {
142-
fmt.Fprintf(os.Stderr, "%s: %s\n", err, buf.String())
143142
ctrd.Kill()
144143
ctrd.Wait()
144+
fmt.Fprintf(os.Stderr, "%s: %s\n", err, buf.String())
145145
os.Exit(1)
146146
}
147147

0 commit comments

Comments
 (0)