htlcswitch: fix minor typos in switch test file
This commit is contained in:
parent
6f5ef249e4
commit
be62188962
@ -75,7 +75,7 @@ func TestSwitchForward(t *testing.T) {
|
|||||||
case <-bobChannelLink.packets:
|
case <-bobChannelLink.packets:
|
||||||
break
|
break
|
||||||
case <-time.After(time.Second):
|
case <-time.After(time.Second):
|
||||||
t.Fatal("request was not propogated to destination")
|
t.Fatal("request was not propagated to destination")
|
||||||
}
|
}
|
||||||
|
|
||||||
if s.circuits.pending() != 1 {
|
if s.circuits.pending() != 1 {
|
||||||
@ -157,7 +157,7 @@ func TestSwitchCancel(t *testing.T) {
|
|||||||
case <-bobChannelLink.packets:
|
case <-bobChannelLink.packets:
|
||||||
break
|
break
|
||||||
case <-time.After(time.Second):
|
case <-time.After(time.Second):
|
||||||
t.Fatal("request was not propogated to destination")
|
t.Fatal("request was not propagated to destination")
|
||||||
}
|
}
|
||||||
|
|
||||||
if s.circuits.pending() != 1 {
|
if s.circuits.pending() != 1 {
|
||||||
@ -237,7 +237,7 @@ func TestSwitchAddSamePayment(t *testing.T) {
|
|||||||
case <-bobChannelLink.packets:
|
case <-bobChannelLink.packets:
|
||||||
break
|
break
|
||||||
case <-time.After(time.Second):
|
case <-time.After(time.Second):
|
||||||
t.Fatal("request was not propogated to destination")
|
t.Fatal("request was not propagated to destination")
|
||||||
}
|
}
|
||||||
|
|
||||||
if s.circuits.pending() != 1 {
|
if s.circuits.pending() != 1 {
|
||||||
@ -270,7 +270,7 @@ func TestSwitchAddSamePayment(t *testing.T) {
|
|||||||
case <-aliceChannelLink.packets:
|
case <-aliceChannelLink.packets:
|
||||||
break
|
break
|
||||||
case <-time.After(time.Second):
|
case <-time.After(time.Second):
|
||||||
t.Fatal("request was not propogated to channelPoint")
|
t.Fatal("request was not propagated to channelPoint")
|
||||||
}
|
}
|
||||||
|
|
||||||
if s.circuits.pending() != 1 {
|
if s.circuits.pending() != 1 {
|
||||||
@ -286,7 +286,7 @@ func TestSwitchAddSamePayment(t *testing.T) {
|
|||||||
case <-aliceChannelLink.packets:
|
case <-aliceChannelLink.packets:
|
||||||
break
|
break
|
||||||
case <-time.After(time.Second):
|
case <-time.After(time.Second):
|
||||||
t.Fatal("request was not propogated to channelPoint")
|
t.Fatal("request was not propagated to channelPoint")
|
||||||
}
|
}
|
||||||
|
|
||||||
if s.circuits.pending() != 0 {
|
if s.circuits.pending() != 0 {
|
||||||
@ -343,7 +343,7 @@ func TestSwitchSendPayment(t *testing.T) {
|
|||||||
case err := <-errChan:
|
case err := <-errChan:
|
||||||
t.Fatalf("unable to send payment: %v", err)
|
t.Fatalf("unable to send payment: %v", err)
|
||||||
case <-time.After(time.Second):
|
case <-time.After(time.Second):
|
||||||
t.Fatal("request was not propogated to destination")
|
t.Fatal("request was not propagated to destination")
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
@ -352,7 +352,7 @@ func TestSwitchSendPayment(t *testing.T) {
|
|||||||
case err := <-errChan:
|
case err := <-errChan:
|
||||||
t.Fatalf("unable to send payment: %v", err)
|
t.Fatalf("unable to send payment: %v", err)
|
||||||
case <-time.After(time.Second):
|
case <-time.After(time.Second):
|
||||||
t.Fatal("request was not propogated to destination")
|
t.Fatal("request was not propagated to destination")
|
||||||
}
|
}
|
||||||
|
|
||||||
if s.numPendingPayments() != 2 {
|
if s.numPendingPayments() != 2 {
|
||||||
|
Loading…
Reference in New Issue
Block a user