summaryrefslogtreecommitdiff
path: root/vendor/github.com/testcontainers/testcontainers-go/wait/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/testcontainers/testcontainers-go/wait/errors.go')
-rw-r--r--vendor/github.com/testcontainers/testcontainers-go/wait/errors.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/testcontainers/testcontainers-go/wait/errors.go b/vendor/github.com/testcontainers/testcontainers-go/wait/errors.go
new file mode 100644
index 0000000..3e3919a
--- /dev/null
+++ b/vendor/github.com/testcontainers/testcontainers-go/wait/errors.go
@@ -0,0 +1,13 @@
+//go:build !windows
+// +build !windows
+
+package wait
+
+import (
+ "errors"
+ "syscall"
+)
+
+func isConnRefusedErr(err error) bool {
+ return errors.Is(err, syscall.ECONNREFUSED)
+}