Merge pull request #37166 from yongtang/05282018-unique-service-name

Add `t.Name()` to tests so that service names are unique
This commit is contained in:
Vincent Demeester 2018-05-29 12:04:21 +02:00 committed by GitHub
commit 864b36255d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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),