Add t.Name() to tests so that service names are unique

This fix adds `t.Name()` to tests in integration/network
so that services created in those tests have unique names.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang 2018-05-28 22:57:52 +00:00
parent 9c2c887b12
commit 76195f8047
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ func TestInspectNetwork(t *testing.T) {
overlayID := netResp.ID
var instances uint64 = 4
serviceName := "TestService"
serviceName := "TestService" + t.Name()
serviceID := swarm.CreateService(t, d,
swarm.ServiceWithReplicas(instances),

View file

@ -207,7 +207,7 @@ func TestServiceWithPredefinedNetwork(t *testing.T) {
hostName := "host"
var instances uint64 = 1
serviceName := "TestService"
serviceName := "TestService" + t.Name()
serviceID := swarm.CreateService(t, d,
swarm.ServiceWithReplicas(instances),