lint:file-ignore SA1019 Ignore deprecation warnings for EncodedConn NewEConn
(t tLogger)
| 24 | |
| 25 | // NewEConn |
| 26 | func NewEConn(t tLogger) *nats.EncodedConn { |
| 27 | ec, err := nats.NewEncodedConn(NewDefaultConnection(t), nats.DEFAULT_ENCODER) |
| 28 | if err != nil { |
| 29 | t.Fatalf("Failed to create an encoded connection: %v\n", err) |
| 30 | } |
| 31 | return ec |
| 32 | } |
| 33 | |
| 34 | func TestBadChan(t *testing.T) { |
| 35 | s := RunDefaultServer() |
no test coverage detected