Skip to content

Commit fd9d239

Browse files
committed
remove created_at from ai test, because it might cause different string value base on system timezone
1 parent 388ce0a commit fd9d239

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/test/java/com/box/sdk/BoxAITest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,9 @@ public void testSendAITexGenRequestWithDialogueHistorySuccess() throws ParseExce
9494
final String fileId = "12345";
9595
final String prompt = "What is the name of the file?";
9696

97-
Date date1 = BoxDateFormat.parse("2013-05-16T15:27:57-07:00");
98-
9997
List<BoxAIDialogueEntry> dialogueHistory = new ArrayList<>();
10098
dialogueHistory.add(
101-
new BoxAIDialogueEntry("What is the name of the file?", "Test file", date1)
99+
new BoxAIDialogueEntry("What is the name of the file?", "Test file")
102100
);
103101
dialogueHistory.add(
104102
new BoxAIDialogueEntry("What is the size of the file?", "10kb")
@@ -111,8 +109,7 @@ public void testSendAITexGenRequestWithDialogueHistorySuccess() throws ParseExce
111109
+ " {\"id\": \"%s\", \"type\": \"file\"}\n"
112110
+ " ],\n"
113111
+ " \"dialogue_history\": [\n"
114-
+ " {\"prompt\": \"What is the name of the file?\", \"answer\": \"Test file\", "
115-
+ " \"created_at\": \"Fri May 17 00:27:57 CEST 2013\"},\n"
112+
+ " {\"prompt\": \"What is the name of the file?\", \"answer\": \"Test file\"},\n"
116113
+ " {\"prompt\": \"What is the size of the file?\", \"answer\": \"10kb\"}\n"
117114
+ " ]\n"
118115
+ "}",

0 commit comments

Comments
 (0)