Skip to content

Commit

Permalink
Use a separate etcd prefix for each integration test to keep tests is…
Browse files Browse the repository at this point in the history
…olated (#1415)
  • Loading branch information
staebler authored and kibbles-n-bytes committed Oct 17, 2017
1 parent 314a622 commit d681da0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/integration/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func withConfigGetFreshApiserverAndClient(
if serverstorage.StorageTypeEtcd == serverConfig.storageType {
etcdOptions = server.NewEtcdOptions()
etcdOptions.StorageConfig.ServerList = serverConfig.etcdServerList
etcdOptions.EtcdOptions.StorageConfig.Prefix = fmt.Sprintf("%s-%08X", server.DefaultEtcdPathPrefix, rand.Int31())
} else {
t.Fatal("no storage type specified")
}
Expand Down

0 comments on commit d681da0

Please sign in to comment.