Skip to content

Commit

Permalink
Fix DBsigEOMElection unit test (#1088)
Browse files Browse the repository at this point in the history
* decrease frequency

* increase loop delay
  • Loading branch information
WhoSoup committed Oct 23, 2020
1 parent 784a64d commit a9129f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions simTest/factomd_test.go
Expand Up @@ -427,7 +427,7 @@ func TestDBsigEOMElection(t *testing.T) {
s := GetFnodes()[0].State
// wait till minute flips
for s.CurrentMinute != 0 {
runtime.Gosched()
time.Sleep(time.Millisecond * 100)
}
s.SetNetStateOff(true)
wait.Done()
Expand All @@ -438,12 +438,12 @@ func TestDBsigEOMElection(t *testing.T) {
stop1 := func() {
s := GetFnodes()[1].State
for s.CurrentMinute != 0 {
runtime.Gosched()
time.Sleep(time.Millisecond * 100)
}
pl := s.ProcessLists.Get(s.LLeaderHeight)
vm := pl.VMs[s.LeaderVMIndex]
for s.CurrentMinute == 0 && vm.Height == 0 {
runtime.Gosched()
time.Sleep(time.Millisecond * 100)
}
s.SetNetStateOff(true)
wait.Done()
Expand Down

0 comments on commit a9129f3

Please sign in to comment.