mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 18:50:41 -07:00
Add debug info for failed RTT test
The test TestConnzRTT() failed once with "invalid duration". Adding the original string in case of error to understand better. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -491,7 +491,7 @@ func TestConnzRTT(t *testing.T) {
|
||||
|
||||
rtt, err := time.ParseDuration(ci.RTT)
|
||||
if err != nil {
|
||||
t.Fatalf("Could not parse RTT properly, %v", err)
|
||||
t.Fatalf("Could not parse RTT properly, %v (ci.RTT=%v)", err, ci.RTT)
|
||||
}
|
||||
if rtt <= 0 {
|
||||
t.Fatal("Expected RTT to be valid and non-zero\n")
|
||||
|
||||
Reference in New Issue
Block a user