1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 15:25:48 +01:00

Increase time interval in TestTime.

The lower interval made us too sensible too scheduling.
This commit is contained in:
Juliusz Chroboczek 2021-08-02 01:59:06 +02:00
parent dd4dbeaee5
commit a3f559875f

View file

@ -40,10 +40,10 @@ func TestTime(t *testing.T) {
}
c = Jiffies()
time.Sleep(time.Second * 100000 / JiffiesPerSec)
time.Sleep(time.Second * 10000000 / JiffiesPerSec)
d = Jiffies() - c
if differs(d, 100000, 10000) {
t.Errorf("Expected %v, got %v", 4000, d)
if differs(d, 10000000, 1000000) {
t.Errorf("Expected %v, got %v", 10000000, d)
}
}