Add testing log context
Enables showing debug logs in testing output. For integration tests the client log output will show in addition to daemon output, with timestamps for better correlation. Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
@@ -35,7 +35,7 @@ func TestImageIsUnpacked(t *testing.T) {
|
||||
}
|
||||
|
||||
const imageName = "docker.io/library/busybox:latest"
|
||||
ctx, cancel := testContext()
|
||||
ctx, cancel := testContext(t)
|
||||
defer cancel()
|
||||
|
||||
client, err := newClient(t, address)
|
||||
@@ -86,7 +86,7 @@ func TestImagePullWithDistSourceLabel(t *testing.T) {
|
||||
tag = "latest"
|
||||
)
|
||||
|
||||
ctx, cancel := testContext()
|
||||
ctx, cancel := testContext(t)
|
||||
defer cancel()
|
||||
|
||||
client, err := newClient(t, address)
|
||||
|
Reference in New Issue
Block a user