Skip to content

Commit af42f69

Browse files
committed
sphinx_test: dont pass in nil functional options
1 parent 0990a2b commit af42f69

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sphinx_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,14 @@ func TestSphinxNodeRelpaySameBatch(t *testing.T) {
303303

304304
// Allow the node to process the initial packet, this should proceed
305305
// without any failures.
306-
if err := tx.ProcessOnionPacket(0, fwdMsg, nil, 1, nil); err != nil {
306+
if err := tx.ProcessOnionPacket(0, fwdMsg, nil, 1); err != nil {
307307
t.Fatalf("unable to process sphinx packet: %v", err)
308308
}
309309

310310
// Now, force the node to process the packet a second time, this call
311311
// should not fail, even though the batch has internally recorded this
312312
// as a duplicate.
313-
err = tx.ProcessOnionPacket(1, fwdMsg, nil, 1, nil)
313+
err = tx.ProcessOnionPacket(1, fwdMsg, nil, 1)
314314
if err != nil {
315315
t.Fatalf("adding duplicate sphinx packet to batch should not "+
316316
"result in an error, instead got: %v", err)
@@ -349,7 +349,7 @@ func TestSphinxNodeRelpayLaterBatch(t *testing.T) {
349349

350350
// Allow the node to process the initial packet, this should proceed
351351
// without any failures.
352-
err = tx.ProcessOnionPacket(uint16(0), fwdMsg, nil, 1, nil)
352+
err = tx.ProcessOnionPacket(uint16(0), fwdMsg, nil, 1)
353353
if err != nil {
354354
t.Fatalf("unable to process sphinx packet: %v", err)
355355
}
@@ -363,7 +363,7 @@ func TestSphinxNodeRelpayLaterBatch(t *testing.T) {
363363

364364
// Now, force the node to process the packet a second time, this should
365365
// fail with a detected replay error.
366-
err = tx2.ProcessOnionPacket(uint16(0), fwdMsg, nil, 1, nil)
366+
err = tx2.ProcessOnionPacket(uint16(0), fwdMsg, nil, 1)
367367
if err != nil {
368368
t.Fatalf("sphinx packet replay should not have been rejected, "+
369369
"instead error is %v", err)
@@ -395,7 +395,7 @@ func TestSphinxNodeReplayBatchIdempotency(t *testing.T) {
395395

396396
// Allow the node to process the initial packet, this should proceed
397397
// without any failures.
398-
err = tx.ProcessOnionPacket(uint16(0), fwdMsg, nil, 1, nil)
398+
err = tx.ProcessOnionPacket(uint16(0), fwdMsg, nil, 1)
399399
if err != nil {
400400
t.Fatalf("unable to process sphinx packet: %v", err)
401401
}
@@ -409,7 +409,7 @@ func TestSphinxNodeReplayBatchIdempotency(t *testing.T) {
409409

410410
// Now, force the node to process the packet a second time, this should
411411
// not fail with a detected replay error.
412-
err = tx2.ProcessOnionPacket(uint16(0), fwdMsg, nil, 1, nil)
412+
err = tx2.ProcessOnionPacket(uint16(0), fwdMsg, nil, 1)
413413
if err != nil {
414414
t.Fatalf("sphinx packet replay should not have been rejected, "+
415415
"instead error is %v", err)

0 commit comments

Comments
 (0)