Skip to content

Commit b86a8e0

Browse files
author
ylembachar
committed
reduce test duration
1 parent 48af082 commit b86a8e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rolling-shutter/keyperimpl/gnosis/syncmonitor_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func TestSyncMonitor_ThrowsErrorWhenBlockNotIncreasing(t *testing.T) {
3434

3535
monitor := &gnosis.SyncMonitor{
3636
DBPool: dbpool,
37-
CheckInterval: 30 * time.Second,
37+
CheckInterval: 5 * time.Second,
3838
}
3939

4040
errCh := make(chan error, 1)
@@ -46,7 +46,7 @@ func TestSyncMonitor_ThrowsErrorWhenBlockNotIncreasing(t *testing.T) {
4646
}
4747
}()
4848

49-
time.Sleep(80 * time.Second)
49+
time.Sleep(12 * time.Second)
5050

5151
select {
5252
case err := <-errCh:
@@ -76,7 +76,7 @@ func TestSyncMonitor_HandlesBlockNumberIncreasing(t *testing.T) {
7676

7777
monitor := &gnosis.SyncMonitor{
7878
DBPool: dbpool,
79-
CheckInterval: 30 * time.Second,
79+
CheckInterval: 5 * time.Second,
8080
}
8181

8282
_, deferFn := service.RunBackground(ctx, monitor)
@@ -96,7 +96,7 @@ func TestSyncMonitor_HandlesBlockNumberIncreasing(t *testing.T) {
9696
return
9797
}
9898

99-
time.Sleep(30 * time.Second)
99+
time.Sleep(5 * time.Second)
100100
}
101101

102102
doneCh <- struct{}{}

0 commit comments

Comments
 (0)