mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-01 16:41:39 +01:00
lntemp: add more methods to support testUpdateChanStatus
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package lntemp
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
|
||||
@@ -35,3 +36,11 @@ func CopyFile(dest, src string) error {
|
||||
|
||||
return d.Close()
|
||||
}
|
||||
|
||||
// errNumNotMatched is a helper method to return a nicely formatted error.
|
||||
func errNumNotMatched(name string, subject string,
|
||||
want, got, total, old int) error {
|
||||
|
||||
return fmt.Errorf("%s: assert %s failed: want %d, got: %d, total: "+
|
||||
"%d, previously had: %d", name, subject, want, got, total, old)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user