(t *testing.T)
| 113 | } |
| 114 | |
| 115 | func TestTLSConnectionStateNonTLS(t *testing.T) { |
| 116 | s := RunDefaultServer() |
| 117 | defer s.Shutdown() |
| 118 | |
| 119 | nc := NewDefaultConnection(t) |
| 120 | defer nc.Close() |
| 121 | |
| 122 | _, err := nc.TLSConnectionState() |
| 123 | if err != nats.ErrConnectionNotTLS { |
| 124 | t.Fatalf("Expected a not tls error, got: %v", err) |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | func TestConnectedServer(t *testing.T) { |
| 129 | s := RunDefaultServer() |
nothing calls this directly
no test coverage detected