()
| 30 | var testTransport = http2.Transport{} |
| 31 | |
| 32 | func newTestHTTP2Connection() (*HTTP2Connection, net.Conn) { |
| 33 | edgeConn, cfdConn := net.Pipe() |
| 34 | connIndex := uint8(0) |
| 35 | log := zerolog.Nop() |
| 36 | obs := NewObserver(&log, &log) |
| 37 | controlStream := NewControlStream( |
| 38 | obs, |
| 39 | mockConnectedFuse{}, |
| 40 | &TunnelProperties{}, |
| 41 | connIndex, |
| 42 | nil, |
| 43 | nil, |
| 44 | 1*time.Second, |
| 45 | nil, |
| 46 | 1*time.Second, |
| 47 | HTTP2, |
| 48 | ) |
| 49 | return NewHTTP2Connection( |
| 50 | cfdConn, |
| 51 | // OriginProxy is set in testConfigManager |
| 52 | testOrchestrator, |
| 53 | &client.ConnectionOptionsSnapshot{}, |
| 54 | obs, |
| 55 | connIndex, |
| 56 | controlStream, |
| 57 | &log, |
| 58 | ), edgeConn |
| 59 | } |
| 60 | |
| 61 | func TestHTTP2ConfigurationSet(t *testing.T) { |
| 62 | http2Conn, edgeConn := newTestHTTP2Connection() |
no test coverage detected