lntest+itest: fix flakes found using neutrino backend
This commit makes sure the sweep requests are received before mining blocks to trigger the actual sweeping. In addition, `testFundingExpiryBlocksOnPending` is updated to deal with the old `channel link not found` issue.
This commit is contained in:
5 files changed
+43
-19
No files matched your search
+8
-2
@@ -53,10 +53,16 @@ func CopyFile(dest, src string) error {
|
||||
|
||||
// errNumNotMatched is a helper method to return a nicely formatted error.
|
||||
func errNumNotMatched(name string, subject string,
|
||||
want, got, total, old int) error {
|
||||
want, got, total, old int, desc ...any) error {
|
||||
|
||||
return fmt.Errorf("%s: assert %s failed: want %d, got: %d, total: "+
|
||||
err := fmt.Errorf("%s: assert %s failed: want %d, got: %d, total: "+
|
||||
"%d, previously had: %d", name, subject, want, got, total, old)
|
||||
|
||||
if len(desc) > 0 {
|
||||
err = fmt.Errorf("%w, desc: %v", err, desc)
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// parseDerivationPath parses a path in the form of m/x'/y'/z'/a/b into a slice
|
||||
|
||||
Reference in new issue
Block a user