Fix to test for new routes

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2023-07-11 19:45:39 -07:00
parent 87c544946b
commit cb1ff10670

View File

@@ -1,4 +1,4 @@
// Copyright 2013-2020 The NATS Authors
// Copyright 2013-2023 The NATS Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
@@ -3825,12 +3825,6 @@ func TestRouteNoLeakOnAuthTimeout(t *testing.T) {
t.Fatalf("Could not parse INFO json: %v\n", err)
}
// The server will send a PING, too
line, _, _ = cr.ReadLine()
if string(line) != "PING" {
t.Fatalf("Expected 'PING' but got %q", line)
}
// Wait out the clock so we hit the auth timeout
time.Sleep(secondsToDuration(opts.AuthTimeout) * 2)
line, _, _ = cr.ReadLine()