(t *testing.T)
| 397 | } |
| 398 | |
| 399 | func TestOldContextRequestWithDeadline(t *testing.T) { |
| 400 | s := RunDefaultServer() |
| 401 | defer s.Shutdown() |
| 402 | |
| 403 | nc, err := nats.Connect(nats.DefaultURL, nats.UseOldRequestStyle()) |
| 404 | if err != nil { |
| 405 | t.Fatalf("Failed to connect: %v", err) |
| 406 | } |
| 407 | defer nc.Close() |
| 408 | |
| 409 | testContextRequestWithDeadline(t, nc) |
| 410 | } |
| 411 | |
| 412 | func TestContextSubNextMsgWithTimeout(t *testing.T) { |
| 413 | s := RunDefaultServer() |
nothing calls this directly
no test coverage detected