now passes even under loaded conditions on r45.
R=r
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=22019
CL=22022
export func TestTick(t *testing.T) {
const (
- Delta uint64 = 10*1e6;
+ Delta uint64 = 100*1e6;
Count uint64 = 10;
);
c := Tick(Delta);
target := int64(Delta*Count);
slop := target*2/10;
if ns < target - slop || ns > target + slop {
- t.Fatalf("%d ticks of %d ns took %d ns, expected %d", Count, Delta, ns, target);
+ t.Fatalf("%d ticks of %g ns took %g ns, expected %g", Count, float64(Delta), float64(ns), float64(target));
}
}