We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38a6d54 commit 300ae4aCopy full SHA for 300ae4a
agent/agent_test.go
@@ -733,12 +733,15 @@ func TestAgent_UnixRemoteForwarding(t *testing.T) {
733
734
// It's possible that the socket is created but the server is not ready to
735
// accept connections yet. We need to retry until we can connect.
736
+ //
737
+ // Note that we wait long here because if the tailnet connection has trouble
738
+ // connecting, it could take 5 seconds or more to reconnect.
739
var conn net.Conn
740
require.Eventually(t, func() bool {
741
var err error
742
conn, err = net.Dial("unix", remoteSocketPath)
743
return err == nil
- }, testutil.WaitShort, testutil.IntervalFast)
744
+ }, testutil.WaitLong, testutil.IntervalFast)
745
defer conn.Close()
746
_, err = conn.Write([]byte("test"))
747
require.NoError(t, err)
0 commit comments