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> (cherry picked from commit 9a3911ced83331b6efe698528a4480bd5ff3d7a6) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 605bc1ffc5adc5a3968ebe7a58060d2542cc28f3 Component: engine
This commit is contained in:
@ -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) {
|
||||
d.StartWithBusybox(t)
|
||||
defer d.Stop(t)
|
||||
|
||||
client := testEnv.APIClient()
|
||||
client := d.NewClientT(t)
|
||||
|
||||
dockerfile := `
|
||||
FROM busybox
|
||||
|
||||
Reference in New Issue
Block a user