routing: Fix dropped errors in tests.
lnd: Fix dropped errors in tests. contractcourt: Fix dropped errors in tests. htlcswitch: Fix dropped errors in tests. invoices: Fix dropped error in tests. lnwallet: Fix dropped errors in tests. macaroons: Fix dropped error in tests.
This commit is contained in:
1 parent
ffb8c0cfc3
commit
3b29ecb921
10 files changed
+54
No files matched your search
@@ -358,6 +358,9 @@ func TestContractInsertionRetrieval(t *testing.T) {
|
||||
t.Fatalf("unable to wipe log: %v", err)
|
||||
}
|
||||
diskResolvers, err = testLog.FetchUnresolvedContracts()
|
||||
if err != nil {
|
||||
t.Fatalf("unable to fetch unresolved contracts: %v", err)
|
||||
}
|
||||
if len(diskResolvers) != 0 {
|
||||
t.Fatalf("no resolvers should be found, instead %v were",
|
||||
len(diskResolvers))
|
||||
@@ -611,6 +614,9 @@ func TestStateMutation(t *testing.T) {
|
||||
// If we try to query for the state again, we should get the default
|
||||
// state again.
|
||||
arbState, err = testLog.CurrentState()
|
||||
if err != nil {
|
||||
t.Fatalf("unable to query current state: %v", err)
|
||||
}
|
||||
if arbState != StateDefault {
|
||||
t.Fatalf("state mismatch: expected %v, got %v", StateDefault,
|
||||
arbState)
|
||||
|
||||
Reference in new issue
Block a user