File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -947,7 +947,7 @@ func TestGetHeaderTimingGames(t *testing.T) {
947947 backend .boost .genesisTime = uint64 (time .Now ().Unix ()) - 36
948948
949949 backend .boost .timeoutGetHeaderMs = 100
950- backend .boost .lateInSlotTimeMs = 1000
950+ backend .boost .lateInSlotTimeMs = 2000
951951
952952 backend .boost .relayConfigs [0 ].EnableTimingGames = true
953953 backend .boost .relayConfigs [0 ].TargetFirstRequestMs = 0
@@ -962,7 +962,7 @@ func TestGetHeaderTimingGames(t *testing.T) {
962962
963963 requestCount := backend .relays [0 ].GetRequestCount (path )
964964 require .Greater (t , requestCount , 1 )
965- require .Equal (t , 5 , requestCount ) // 100ms / 20ms = 5 requests
965+ require .LessOrEqual (t , requestCount , 5 ) // at most 100ms / 20ms = 5 requests
966966 })
967967
968968 t .Run ("Multiple timing games relays compete" , func (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments