Skip to content

Commit 9e207c7

Browse files
committed
fix(tests): randomize test-database TCP port
1 parent 0a889fa commit 9e207c7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/controllerComponent_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,12 @@ func TestBuild(t *testing.T) {
4949
fmt.Println("UUID for the session Controller Test :" + testSessionUID)
5050
etcdPort := utils.GetRandomPort()
5151
servicePort := utils.GetRandomPort()
52+
dbPort := utils.GetRandomPort()
5253
dockercliutils.RunEtcdTest(t, testSessionUID, etcdPort)
5354
fmt.Println("starting controller test:")
5455
Controllerhandler := etcdutils.InitetcdValues(setdir, setkeys, etcdPort)
5556
etcdutils.Publishvalues(t, Controllerhandler)
56-
mockserviceutils.RunMockDatabase(t, testSessionUID, etcdPort)
57+
mockserviceutils.RunMockDatabase(t, testSessionUID, etcdPort, dbPort)
5758
fmt.Println("starting Controller component test")
5859
runDeisControllerTest(t, testSessionUID, etcdPort, servicePort)
5960
dockercliutils.DeisServiceTest(

0 commit comments

Comments
 (0)