Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newHBONEServer (0.22 sec)

  1. pkg/hbone/dialer_test.go

    	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{
    			"some-addition-metadata": {"test-value"},
    		},
    		TLS:     nil, // No TLS for simplification
    		Timeout: &timeout,
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 26 23:44:52 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top