-
-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve error check in the ForListeningPort waiting strategy, fi…
…x dep versions use platform-dependent connection refused error type and improve ctx.Err checks in the ForListeningPort waiting strategy use github.com/Microsoft/hcsshim v0.8.7 instead of v0.8.6, as not compatible with github.com/docker/docker go mod tidy
- Loading branch information
1 parent
00810a7
commit a930d9b
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// +build !windows | ||
|
||
package wait | ||
|
||
import "syscall" | ||
|
||
func isConnRefusedErr(err error) bool { | ||
return err == syscall.ECONNREFUSED | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package wait | ||
|
||
import ( | ||
"golang.org/x/sys/windows" | ||
) | ||
|
||
func isConnRefusedErr(err error) bool { | ||
return err == windows.WSAECONNREFUSED | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters