mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 13:28:01 -05:00
* Migrate Prysm repo to Offchain Labs organization ahead of Pectra upgrade v6 * Replace prysmaticlabs with OffchainLabs on general markdowns * Update mock * Gazelle and add mock.go to excluded generated mock file
23 lines
509 B
Go
23 lines
509 B
Go
package fdlimits_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/OffchainLabs/prysm/v6/runtime/fdlimits"
|
|
"github.com/OffchainLabs/prysm/v6/testing/assert"
|
|
gethLimit "github.com/ethereum/go-ethereum/common/fdlimit"
|
|
)
|
|
|
|
func TestSetMaxFdLimits(t *testing.T) {
|
|
assert.NoError(t, fdlimits.SetMaxFdLimits())
|
|
|
|
curr, err := gethLimit.Current()
|
|
assert.NoError(t, err)
|
|
|
|
max, err := gethLimit.Maximum()
|
|
assert.NoError(t, err)
|
|
|
|
assert.Equal(t, max, curr, "current and maximum file descriptor limits do not match up.")
|
|
|
|
}
|