mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 03:24:40 -07:00
Fix to test for new routes
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user