|
@@ -1014,7 +1014,11 @@ func TestEndpointMultipleJoins(t *testing.T) {
|
|
|
sbx1, err := controller.NewSandbox(containerID,
|
|
|
libnetwork.OptionHostname("test"),
|
|
|
libnetwork.OptionDomainname("docker.io"),
|
|
|
- libnetwork.OptionExtraHost("web", "192.168.0.1"))
|
|
|
+ libnetwork.OptionExtraHost("web", "192.168.0.1"),
|
|
|
+ )
|
|
|
+ if err != nil {
|
|
|
+ t.Fatal(err)
|
|
|
+ }
|
|
|
defer func() {
|
|
|
if err := sbx1.Delete(); err != nil {
|
|
|
t.Fatal(err)
|
|
@@ -1022,6 +1026,9 @@ func TestEndpointMultipleJoins(t *testing.T) {
|
|
|
}()
|
|
|
|
|
|
sbx2, err := controller.NewSandbox("c2")
|
|
|
+ if err != nil {
|
|
|
+ t.Fatal(err)
|
|
|
+ }
|
|
|
defer func() {
|
|
|
if err := sbx2.Delete(); err != nil {
|
|
|
t.Fatal(err)
|