@@ -45,19 +45,19 @@ type TestTopology struct {
45
45
// SetupNetworking creates interfaces and network namespaces for the test.
46
46
// The most simple implementation is NetworkSetupDefault, which only creates
47
47
// a network namespace shared for all tests.
48
- SetupNetworking func (t * testing.T , log slog.Logger ) TestNetworking
48
+ SetupNetworking func (t * testing.T , logger slog.Logger ) TestNetworking
49
49
50
50
// StartServer gets called in the server subprocess. It's expected to start
51
51
// the coordinator server in the background and return.
52
- StartServer func (t * testing.T , log slog.Logger , listenAddr string )
52
+ StartServer func (t * testing.T , logger slog.Logger , listenAddr string )
53
53
// StartClient gets called in each client subprocess. It's expected to
54
54
// create the tailnet.Conn and ensure connectivity to it's peer.
55
- StartClient func (t * testing.T , log slog.Logger , serverURL * url.URL , myID uuid.UUID , peerID uuid.UUID ) * tailnet.Conn
55
+ StartClient func (t * testing.T , logger slog.Logger , serverURL * url.URL , myID uuid.UUID , peerID uuid.UUID ) * tailnet.Conn
56
56
57
57
// RunTests is the main test function. It's called in each of the client
58
58
// subprocesses. If tests can only run once, they should check the client ID
59
59
// and return early if it's not the expected one.
60
- RunTests func (t * testing.T , log slog.Logger , serverURL * url.URL , myID uuid.UUID , peerID uuid.UUID , conn * tailnet.Conn )
60
+ RunTests func (t * testing.T , logger slog.Logger , serverURL * url.URL , myID uuid.UUID , peerID uuid.UUID , conn * tailnet.Conn )
61
61
}
62
62
63
63
type TestNetworking struct {
@@ -82,7 +82,7 @@ type TestNetworkingProcess struct {
82
82
NetNSFd int
83
83
}
84
84
85
- func SetupNetworkingLoopback (t * testing.T , log slog.Logger ) TestNetworking {
85
+ func SetupNetworkingLoopback (t * testing.T , _ slog.Logger ) TestNetworking {
86
86
netNSName := "codertest_netns_"
87
87
randStr , err := cryptorand .String (4 )
88
88
require .NoError (t , err , "generate random string for netns name" )
0 commit comments