MCPcopy
hub / github.com/coder/websocket / assertClose

Function assertClose

conn_test.go:704–708  ·  view source on GitHub ↗
(tb testing.TB, c *websocket.Conn)

Source from the content-addressed store, hash-verified

702}
703
704func assertClose(tb testing.TB, c *websocket.Conn) {
705 tb.Helper()
706 err := c.Close(websocket.StatusNormalClosure, "")
707 assert.Success(tb, err)
708}
709
710func TestConcurrentClosePing(t *testing.T) {
711 t.Parallel()

Callers 1

TestDialViaProxyFunction · 0.85

Calls 2

SuccessFunction · 0.92
CloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…