mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Fix Bandwith Limiter Panic (#11988)
This commit is contained in:
@@ -914,6 +914,14 @@ func TestTimeToWait(t *testing.T) {
|
||||
timeTillEmpty: 200 * time.Second,
|
||||
want: 0 * time.Second,
|
||||
},
|
||||
{
|
||||
name: "Limiter has full capacity remaining",
|
||||
wanted: 350,
|
||||
rem: 320,
|
||||
capacity: 320,
|
||||
timeTillEmpty: 0 * time.Second,
|
||||
want: 0 * time.Second,
|
||||
},
|
||||
{
|
||||
name: "Limiter has reached full capacity",
|
||||
wanted: 64,
|
||||
|
||||
Reference in New Issue
Block a user