test_lnpeer: split some tests, remove redundant test
This commit is contained in:
@@ -1715,20 +1715,20 @@ class TestPeerForwarding(TestPeer):
|
|||||||
await peer.initialized
|
await peer.initialized
|
||||||
await group.spawn(pay(**kwargs))
|
await group.spawn(pay(**kwargs))
|
||||||
|
|
||||||
|
async def test_payment_multipart(self):
|
||||||
|
graph = self.prepare_chans_and_peers_in_graph(self.GRAPH_DEFINITIONS['square_graph'])
|
||||||
|
with self.assertRaises(PaymentDone):
|
||||||
|
await self._run_mpp(graph, {})
|
||||||
|
|
||||||
async def test_payment_multipart_with_timeout(self):
|
async def test_payment_multipart_with_timeout(self):
|
||||||
graph = self.prepare_chans_and_peers_in_graph(self.GRAPH_DEFINITIONS['square_graph'])
|
graph = self.prepare_chans_and_peers_in_graph(self.GRAPH_DEFINITIONS['square_graph'])
|
||||||
with self.assertRaises(PaymentTimeout):
|
with self.assertRaises(PaymentTimeout):
|
||||||
await self._run_mpp(graph, {'bob_forwarding': False})
|
await self._run_mpp(graph, {'bob_forwarding': False})
|
||||||
with self.assertRaises(PaymentDone):
|
|
||||||
await self._run_mpp(graph, {'bob_forwarding': True})
|
|
||||||
|
|
||||||
async def test_payment_multipart(self):
|
async def test_payment_multipart_wrong_invoice(self):
|
||||||
graph = self.prepare_chans_and_peers_in_graph(self.GRAPH_DEFINITIONS['square_graph'])
|
graph = self.prepare_chans_and_peers_in_graph(self.GRAPH_DEFINITIONS['square_graph'])
|
||||||
with self.assertRaises(NoPathFound):
|
with self.assertRaises(NoPathFound):
|
||||||
await self._run_mpp(graph, {'mpp_invoice': False})
|
await self._run_mpp(graph, {'mpp_invoice': False})
|
||||||
with self.assertRaises(PaymentDone):
|
|
||||||
await self._run_mpp(graph, {'mpp_invoice': True})
|
|
||||||
|
|
||||||
async def test_payment_multipart_trampoline_e2e(self):
|
async def test_payment_multipart_trampoline_e2e(self):
|
||||||
graph = self.prepare_chans_and_peers_in_graph(self.GRAPH_DEFINITIONS['square_graph'])
|
graph = self.prepare_chans_and_peers_in_graph(self.GRAPH_DEFINITIONS['square_graph'])
|
||||||
|
|||||||
Reference in New Issue
Block a user