MCPcopy
hub / github.com/nats-io/nats.go / TestEncDrainSupported

Function TestEncDrainSupported

test/enc_test.go:466–475  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

464}
465
466func TestEncDrainSupported(t *testing.T) {
467 s := RunServerOnPort(TEST_PORT)
468 defer s.Shutdown()
469
470 ec := NewDefaultEConn(t)
471 err := ec.Drain()
472 if err != nil {
473 t.Fatalf("Expected no error calling Drain(), got %v", err)
474 }
475}
476
477const ENC_TEST_PORT = 8268
478

Callers

nothing calls this directly

Calls 4

NewDefaultEConnFunction · 0.85
FatalfMethod · 0.80
RunServerOnPortFunction · 0.70
DrainMethod · 0.65

Tested by

no test coverage detected