- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestDialer (1.37 sec)
-
pkg/hbone/dialer_test.go
}, TLS: nil, // No TLS for simplification Timeout: &timeout, }) _, err := d.Dial("tcp", "fake") if err == nil { t.Fatal("expected error, got none.") } } func TestDialer(t *testing.T) { timeout := 500 * time.Millisecond testAddr := newTCPServer(t, "hello") proxy := newHBONEServer(t) d := NewDialer(Config{ ProxyAddress: proxy, Headers: map[string][]string{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jan 26 23:44:52 UTC 2023 - 2.5K bytes - Viewed (0) -
src/crypto/tls/tls_test.go
func (f readerFunc) Read(b []byte) (int, error) { return f(b) } // TestDialer tests that tls.Dialer.DialContext can abort in the middle of a handshake. // (The other cases are all handled by the existing dial tests in this package, which // all also flow through the same code shared code paths) func TestDialer(t *testing.T) { ln := newLocalListener(t) defer ln.Close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 60.5K bytes - Viewed (0)