From 6d9f9c31f42b5fe7c51f767b5b62a0f74fa0aa54 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Wed, 1 Apr 2020 00:13:23 +0200 Subject: [PATCH] routing/router_test: remove preimage overwrite The test case's preimage was (mistakenly) overwritten after crafting the lightning payment, causing the parts of the testcases use the same preimage causing problems when we are using the payment hash and preimage in the mock control tower to distinguish paymennts. --- routing/router_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/routing/router_test.go b/routing/router_test.go index 42020b7ea..d8550ac73 100644 --- a/routing/router_test.go +++ b/routing/router_test.go @@ -3025,8 +3025,6 @@ func TestRouterPaymentStateMachine(t *testing.T) { PaymentHash: payHash, } - copy(preImage[:], bytes.Repeat([]byte{9}, 32)) - router.cfg.SessionSource = &mockPaymentSessionSource{ routes: test.routes, }