Skip to content

Commit 7029cf8

Browse files
Updating tests
1 parent 21065a9 commit 7029cf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/org/openapitools/client/api/CallsApiTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import static org.hamcrest.MatcherAssert.assertThat;
3333
import static org.hamcrest.CoreMatchers.instanceOf;
3434
import static org.hamcrest.Matchers.is;
35+
import static org.hamcrest.Matchers.anyOf;
3536
import static org.hamcrest.beans.HasPropertyWithValue.hasProperty;
3637

3738
import static org.openapitools.client.utils.TestingEnvironmentVariables.*;
@@ -202,7 +203,7 @@ public void getCallState() throws ApiException, InterruptedException {
202203
TimeUnit.SECONDS.sleep(TEST_SLEEP);
203204
ApiResponse<CallState> response = api.getCallStateWithHttpInfo(BW_ACCOUNT_ID, callIdList.get(0));
204205

205-
assertThat(response.getStatusCode(), is((200) || (404);
206+
assertThat(response.getStatusCode(), anyOf(is(200),is(404)));
206207
assertThat(response.getData(), hasProperty("callId", is(instanceOf(String.class))));
207208
assertThat(response.getData(), hasProperty("state", is(instanceOf(String.class))));
208209
assertThat(response.getData(), hasProperty("direction", is(CallDirectionEnum.OUTBOUND)));

0 commit comments

Comments
 (0)