Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsocha2 committed Apr 30, 2024
1 parent 7b21395 commit c3fcd9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/intTest/java/com/box/sdk/BoxAIIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void askAISingleItem() throws InterruptedException {
BoxAI.Mode.SINGLE_ITEM_QA
);
assertThat(response.getAnswer(), containsString("Test file"));
assert response.getCreatedAt().after(new Date(System.currentTimeMillis()));
assert response.getCreatedAt().before(new Date(System.currentTimeMillis()));
assertThat(response.getCompletionReason(), equalTo("done"));
}, 2, 2000);

Expand Down Expand Up @@ -90,7 +90,7 @@ public void askAIMultipleItems() throws InterruptedException {
BoxAI.Mode.MULTIPLE_ITEM_QA
);
assertThat(response.getAnswer(), containsString("Test file"));
assert response.getCreatedAt().after(new Date(System.currentTimeMillis()));
assert response.getCreatedAt().before(new Date(System.currentTimeMillis()));
assertThat(response.getCompletionReason(), equalTo("done"));
}, 2, 2000);

Expand Down Expand Up @@ -128,7 +128,7 @@ public void askAITextGenItemWithDialogueHistory() throws ParseException, Interru
dialogueHistory
);
assertThat(response.getAnswer(), containsString("name"));
assert response.getCreatedAt().after(new Date(System.currentTimeMillis()));
assert response.getCreatedAt().before(new Date(System.currentTimeMillis()));
assertThat(response.getCompletionReason(), equalTo("done"));
}, 2, 2000);

Expand Down

0 comments on commit c3fcd9b

Please sign in to comment.