[18.09 backport] Fix TestBuildWithSession, TestBuildSquashParent using wrong daemon during test
@@ -27,7 +27,7 @@ func TestBuildWithSession(t *testing.T) {
d.StartWithBusybox(t)
defer d.Stop(t)
- client := testEnv.APIClient()
+ client := d.NewClientT(t)
dockerfile := `
FROM busybox
@@ -26,7 +26,7 @@ func TestBuildSquashParent(t *testing.T) {