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:
Derek McGowan
2019-07-15 15:29:09 -07:00
parent f63eab32e1
commit 63ceaf877d
14 changed files with 86 additions and 76 deletions

View File

@@ -43,7 +43,7 @@ func TestExportAndImport(t *testing.T) {
if testing.Short() || runtime.GOOS == "windows" {
t.Skip()
}
ctx, cancel := testContext()
ctx, cancel := testContext(t)
defer cancel()
client, err := New(address)
@@ -83,7 +83,7 @@ func TestExportAndImport(t *testing.T) {
}
func TestImport(t *testing.T) {
ctx, cancel := testContext()
ctx, cancel := testContext(t)
defer cancel()
client, err := New(address)