871cf72363
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>
11 lines
202 B
Go
11 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) {}
|