Browse code

Fix TestBuildWithSession, TestBuildSquashParent using wrong daemon during test

These tests were spinning up a new daemon, but after the daemon was spun up,
the default test-daemon was used by the client.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2018/12/22 22:37:38
Showing 2 changed files
... ...
@@ -27,7 +27,7 @@ func TestBuildWithSession(t *testing.T) {
27 27
 	d.StartWithBusybox(t)
28 28
 	defer d.Stop(t)
29 29
 
30
-	client := testEnv.APIClient()
30
+	client := d.NewClientT(t)
31 31
 
32 32
 	dockerfile := `
33 33
 		FROM busybox
... ...
@@ -26,7 +26,7 @@ func TestBuildSquashParent(t *testing.T) {
26 26
 	d.StartWithBusybox(t)
27 27
 	defer d.Stop(t)
28 28
 
29
-	client := testEnv.APIClient()
29
+	client := d.NewClientT(t)
30 30
 
31 31
 	dockerfile := `
32 32
 		FROM busybox