MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / TestDialTimeout

Function TestDialTimeout

crypto/etls/conn_test.go:310–318  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

308}
309
310func TestDialTimeout(t *testing.T) {
311 Convey("Test dial timeout", t, func(c C) {
312 _, err := Dial("tcp", "240.0.0.1:8080", NewCipher([]byte("")))
313 nerr, ok := err.(net.Error)
314 So(ok, ShouldBeTrue)
315 So(nerr.Timeout(), ShouldBeTrue)
316 })
317
318}

Callers

nothing calls this directly

Calls 2

NewCipherFunction · 0.85
DialFunction · 0.70

Tested by

no test coverage detected