mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-22 07:24:23 +01:00
add get-blockheight to status controller
This commit is contained in:
@@ -46,6 +46,13 @@ class StatusControllerIT {
|
||||
.andExpect(content().string("true"));
|
||||
}
|
||||
|
||||
@Test
|
||||
void getBlockHeight() throws Exception {
|
||||
when(ownNodeService.getBlockHeight()).thenReturn(123_456);
|
||||
mockMvc.perform(get(PREFIX + "/block-height"))
|
||||
.andExpect(content().string("123456"));
|
||||
}
|
||||
|
||||
@Test
|
||||
void getPubkeysForOpenChannels() throws Exception {
|
||||
when(channelService.getOpenChannels()).thenReturn(Set.of(LOCAL_OPEN_CHANNEL_TO_NODE_3, LOCAL_OPEN_CHANNEL));
|
||||
|
||||
Reference in New Issue
Block a user