github.com/anacrolix/torrent@v1.61.0/tracker/udp/timeout_test.go (about) 1 package udp 2 3 import ( 4 "math" 5 "testing" 6 7 qt "github.com/go-quicktest/qt" 8 ) 9 10 func TestTimeoutMax(t *testing.T) { 11 qt.Check(t, qt.Equals(timeout(8), maxTimeout)) 12 qt.Check(t, qt.Equals(timeout(9), maxTimeout)) 13 qt.Check(t, qt.Equals(timeout(math.MaxInt32), maxTimeout)) 14 }