Skip to content

Commit

Permalink
work around duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Otto committed Oct 31, 2024
1 parent 5cfe9d6 commit 162f81c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

import static de.cotto.lndmanagej.model.BalanceInformationFixtures.BALANCE_INFORMATION;
import static de.cotto.lndmanagej.model.ChannelFixtures.CAPACITY;
import static de.cotto.lndmanagej.model.ChannelFixtures.CAPACITY_2;
import static de.cotto.lndmanagej.model.ChannelIdFixtures.CHANNEL_ID;
import static de.cotto.lndmanagej.model.ChannelIdFixtures.CHANNEL_ID_2;
import static de.cotto.lndmanagej.model.ChannelIdFixtures.CHANNEL_ID_3;
Expand Down Expand Up @@ -172,7 +173,7 @@ void does_not_add_edge_with_fee_rate_at_limit_if_first_hop_and_fee_is_not_ignore
Optional.empty()
);
Edge edge =
new Edge(CHANNEL_ID, PUBKEY_4, PUBKEY, CAPACITY, policy(feeRateLimit), Policy.UNKNOWN);
new Edge(CHANNEL_ID, PUBKEY_4, PUBKEY, CAPACITY_2, policy(feeRateLimit), Policy.UNKNOWN);
when(grpcGraph.getChannelEdges()).thenReturn(Optional.of(Set.of(edge)));
assertThat(edgeComputation.getEdges(paymentOptions, MAX_TIME_LOCK_DELTA).edges()).isEmpty();
}
Expand Down

0 comments on commit 162f81c

Please sign in to comment.