Skip to content

Commit eb6638c

Browse files
committed
fix the IT test
Signed-off-by: Xun Zhang <xunzh@amazon.com>
1 parent 914e54f commit eb6638c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/src/test/java/org/opensearch/ml/rest/RestMemoryGetConversationsActionIT.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ public void testNoConversations_EmptyList() throws IOException {
6161
HttpEntity httpEntity = response.getEntity();
6262
String entityString = TestHelper.httpEntityToString(httpEntity);
6363
Map map = gson.fromJson(entityString, Map.class);
64-
assert (map.containsKey("conversations"));
64+
assert (map.containsKey(RESPONSE_CONVERSATION_LIST_FIELD));
6565
assert (!map.containsKey("next_token"));
66-
assert (((ArrayList) map.get("conversations")).size() == 0);
66+
assert (((ArrayList) map.get(RESPONSE_CONVERSATION_LIST_FIELD)).size() == 0);
6767
}
6868

6969
public void testGetConversations_LastPage() throws IOException {

0 commit comments

Comments
 (0)