Skip to content

Commit 952786f

Browse files
authored
e2e: Fixed TestWaitMetric_Nan test. (#2144)
Signed-off-by: Bartlomiej Plotka <[email protected]>
1 parent b6a25a9 commit 952786f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

integration/e2e/service.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"fmt"
66
"io"
77
"io/ioutil"
8+
"math"
89
"os"
910
"os/exec"
1011
"regexp"
@@ -427,7 +428,7 @@ func (s *HTTPService) WaitSumMetric(metric string, value float64) error {
427428
}
428429
}
429430

430-
if sum == value {
431+
if sum == value || math.IsNaN(sum) && math.IsNaN(value) {
431432
return nil
432433
}
433434
lastValue = sum

0 commit comments

Comments
 (0)