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.
This commit is contained in:
Johan T. Halseth 2020-04-01 00:13:23 +02:00
parent 79227bab3a
commit 6d9f9c31f4
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -3025,8 +3025,6 @@ func TestRouterPaymentStateMachine(t *testing.T) {
PaymentHash: payHash, PaymentHash: payHash,
} }
copy(preImage[:], bytes.Repeat([]byte{9}, 32))
router.cfg.SessionSource = &mockPaymentSessionSource{ router.cfg.SessionSource = &mockPaymentSessionSource{
routes: test.routes, routes: test.routes,
} }