mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
Use "InDelta" to compare values where expected could be "0".
This commit is contained in:
parent
415a49e04b
commit
0960a714aa
1 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ func checkStatsValue(t *testing.T, collector prometheus.Collector, value float64
|
|||
pc := make([]uintptr, 10)
|
||||
n := runtime.Callers(2, pc)
|
||||
if n == 0 {
|
||||
assert.InEpsilon(value, v, 0.0001, "failed for %s", desc)
|
||||
assert.InDelta(value, v, 0.0001, "failed for %s", desc)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -88,7 +88,7 @@ func checkStatsValue(t *testing.T, collector prometheus.Collector, value float64
|
|||
break
|
||||
}
|
||||
}
|
||||
assert.InEpsilon(value, v, 0.0001, "Unexpected value for %s at\n%s", desc, stack.String())
|
||||
assert.InDelta(value, v, 0.0001, "Unexpected value for %s at\n%s", desc, stack.String())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue