mirror of
https://github.com/jech/galene.git
synced 2024-11-09 18:25:58 +01:00
Increase time interval in TestTime.
The lower interval made us too sensible too scheduling.
This commit is contained in:
parent
dd4dbeaee5
commit
a3f559875f
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue