htlcswitch/circuit_test: use CircuitKey field names

This commit is contained in:
Conner Fromknecht 2018-08-03 13:27:35 -07:00
parent 8379bbaa9b
commit b608fca447
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -227,7 +227,10 @@ func TestCircuitMapPersistence(t *testing.T) {
cfg, circuitMap := newCircuitMap(t)
circuit := circuitMap.LookupCircuit(htlcswitch.CircuitKey{chan1, 0})
circuit := circuitMap.LookupCircuit(htlcswitch.CircuitKey{
ChanID: chan1,
HtlcID: 0,
})
if circuit != nil {
t.Fatalf("LookupByHTLC returned a circuit before any were added: %v",
circuit)