itest: document a rare flake found in macOS

This commit is contained in:
yyforyongyu
2024-12-04 14:12:38 +08:00
parent 39104c53d4
commit 7e80b77535
2 changed files with 104 additions and 19 deletions

View File

@@ -233,6 +233,11 @@ func getLndBinary(t *testing.T) string {
return binary
}
// isDarwin returns true if the test is running on a macOS.
func isDarwin() bool {
return runtime.GOOS == "darwin"
}
func init() {
// Before we start any node, we need to make sure that any btcd node
// that is started through the RPC harness uses a unique port as well