(t *testing.T)
| 322 | } |
| 323 | |
| 324 | func TestUserJWTAndSeed(t *testing.T) { |
| 325 | if server.VERSION[0] == '1' { |
| 326 | t.Skip() |
| 327 | } |
| 328 | ts := runTrustServer() |
| 329 | defer ts.Shutdown() |
| 330 | |
| 331 | url := fmt.Sprintf("nats://127.0.0.1:%d", TEST_PORT) |
| 332 | nc, err := nats.Connect(url, nats.UserJWTAndSeed(uJWT, string(uSeed))) |
| 333 | if err != nil { |
| 334 | t.Fatalf("Expected to connect, got %v", err) |
| 335 | } |
| 336 | nc.Close() |
| 337 | } |
| 338 | |
| 339 | func TestUserCredentialBytes(t *testing.T) { |
| 340 | ts := runTrustServer() |
nothing calls this directly
no test coverage detected