mirror of
https://github.com/moby/moby.git
synced 2026-08-10 17:15:06 +00:00
TestProxyNXDOMAIN has proven to be susceptible to failing as a
consequence of unlocked threads being set to the wrong network
namespace. As the failure mode looks a lot like a bug in the test
itself, it seems prudent to add a check for mismatched namespaces to the
test so we will know for next time that the root cause lies elsewhere.
Signed-off-by: Cory Snider <csnider@mirantis.com>
(cherry picked from commit 871cf72363)
Signed-off-by: Cory Snider <csnider@mirantis.com>
12 lines
202 B
Go
12 lines
202 B
Go
//go:build !linux
|
|
|
|
package testutils
|
|
|
|
import (
|
|
"syscall"
|
|
"testing"
|
|
)
|
|
|
|
// AssertSocketSameNetNS is a no-op on platforms other than Linux.
|
|
func AssertSocketSameNetNS(t testing.TB, conn syscall.Conn) {}
|