(t *testing.T)
| 329 | } |
| 330 | |
| 331 | func TestOldContextRequestWithCancel(t *testing.T) { |
| 332 | s := RunDefaultServer() |
| 333 | defer s.Shutdown() |
| 334 | |
| 335 | nc, err := nats.Connect(nats.DefaultURL, nats.UseOldRequestStyle()) |
| 336 | if err != nil { |
| 337 | t.Fatalf("Failed to connect: %v", err) |
| 338 | } |
| 339 | defer nc.Close() |
| 340 | |
| 341 | testContextRequestWithCancel(t, nc) |
| 342 | } |
| 343 | |
| 344 | func testContextRequestWithDeadline(t *testing.T, nc *nats.Conn) { |
| 345 | deadline := time.Now().Add(100 * time.Millisecond) |
nothing calls this directly
no test coverage detected