return channel IDs line by line

This commit is contained in:
Carsten Otto
2021-11-12 09:09:34 +01:00
parent 3888614d56
commit 7bd5f8d406
3 changed files with 6 additions and 11 deletions

View File

@@ -32,11 +32,9 @@ class LegacyControllerTest {
@Test
void getOpenChannelIds() {
// jq is confused by large numbers, return string instead
when(nodeService.getOpenChannelIds(PUBKEY)).thenReturn(List.of(CHANNEL_ID, CHANNEL_ID_3));
assertThat(legacyController.getOpenChannelIds(PUBKEY)).containsExactly(
CHANNEL_ID.toString(),
CHANNEL_ID_3.toString()
assertThat(legacyController.getOpenChannelIds(PUBKEY)).isEqualTo(
CHANNEL_ID + "\n" + CHANNEL_ID_3
);
}
}