fiq jq issue, use string instead of long

This commit is contained in:
Carsten Otto
2021-11-11 20:31:33 +01:00
parent 07d9c7c5f7
commit 2f8980db0f
3 changed files with 7 additions and 6 deletions

View File

@@ -43,7 +43,7 @@ class NodeControllerIT {
void getOpenChannelIds() throws Exception {
when(nodeService.getOpenChannelIds(PUBKEY)).thenReturn(List.of(CHANNEL_ID, CHANNEL_ID_3));
mockMvc.perform(get("/api/node/" + PUBKEY + "/open-channels"))
.andExpect(jsonPath("$[0]", is(CHANNEL_ID.shortChannelId())))
.andExpect(jsonPath("$[1]", is(CHANNEL_ID_3.shortChannelId())));
.andExpect(jsonPath("$[0]", is(CHANNEL_ID.toString())))
.andExpect(jsonPath("$[1]", is(CHANNEL_ID_3.toString())));
}
}