mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Add verify slot tolerance test (#12344)
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
@@ -353,6 +353,14 @@ func TestVerifySlotTime(t *testing.T) {
|
||||
},
|
||||
wantedErr: "could not process slot from the future",
|
||||
},
|
||||
{
|
||||
name: "future slot but ok given 2s tolerance",
|
||||
args: args{
|
||||
genesisTime: prysmTime.Now().Add(-1*time.Duration(params.BeaconConfig().SecondsPerSlot) - 10*time.Second).Unix(),
|
||||
slot: 1,
|
||||
timeTolerance: 2 * time.Second,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "max future slot",
|
||||
args: args{
|
||||
|
||||
Reference in New Issue
Block a user