File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
rolling-shutter/keyperimpl/gnosis Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ func TestSyncMonitor_ThrowsErrorWhenBlockNotIncreasing(t *testing.T) {
34
34
35
35
monitor := & gnosis.SyncMonitor {
36
36
DBPool : dbpool ,
37
- CheckInterval : 30 * time .Second ,
37
+ CheckInterval : 5 * time .Second ,
38
38
}
39
39
40
40
errCh := make (chan error , 1 )
@@ -46,7 +46,7 @@ func TestSyncMonitor_ThrowsErrorWhenBlockNotIncreasing(t *testing.T) {
46
46
}
47
47
}()
48
48
49
- time .Sleep (80 * time .Second )
49
+ time .Sleep (12 * time .Second )
50
50
51
51
select {
52
52
case err := <- errCh :
@@ -76,7 +76,7 @@ func TestSyncMonitor_HandlesBlockNumberIncreasing(t *testing.T) {
76
76
77
77
monitor := & gnosis.SyncMonitor {
78
78
DBPool : dbpool ,
79
- CheckInterval : 30 * time .Second ,
79
+ CheckInterval : 5 * time .Second ,
80
80
}
81
81
82
82
_ , deferFn := service .RunBackground (ctx , monitor )
@@ -96,7 +96,7 @@ func TestSyncMonitor_HandlesBlockNumberIncreasing(t *testing.T) {
96
96
return
97
97
}
98
98
99
- time .Sleep (30 * time .Second )
99
+ time .Sleep (5 * time .Second )
100
100
}
101
101
102
102
doneCh <- struct {}{}
You can’t perform that action at this time.
0 commit comments