diff --git a/Makefile b/Makefile index 2fa57549..a8dd5067 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,11 @@ build: start: docker-compose up --build --remove-orphans --detach - docker attach $(shell docker-compose ps -q javaSDK) + # Wait for the container to be running before attaching + @while [ -z "$$(docker-compose ps -q javaSDK)" ]; do \ + sleep 1; \ + done + docker attach $$(docker-compose ps -q javaSDK) test: @[ "${CONTAINER}" ] && \ diff --git a/src/test/java/com/plivo/api/VerifySessionTest.java b/src/test/java/com/plivo/api/VerifySessionTest.java index 5f02720d..affa0d2f 100644 --- a/src/test/java/com/plivo/api/VerifySessionTest.java +++ b/src/test/java/com/plivo/api/VerifySessionTest.java @@ -28,7 +28,7 @@ public void setUp() throws Exception { public void invalidSessionCreated() throws Exception { expectResponse("createSession.json", 202); - VerifySession.creator(null,null, null, null, null,null, null, null, 0, null) + VerifySession.creator(null,null, null, null, null,null, null, null, 0, null, null) .create(); } @@ -36,7 +36,7 @@ public void invalidSessionCreated() throws Exception { public void sessionCreated() throws Exception { expectResponse("createSession.json", 202); - VerifySession.creator(null,"+1234567890", null, null, null, null, null, null, 0, null) + VerifySession.creator(null,"+1234567890", null, null, null, null, null, null, 0, null, null) .create(); }