Files
prysm/runtime/fdlimits/fdlimits_test.go
terence 774b9a7159 Migrate Prysm repo to Offchain Labs organization ahead of Pectra V6 (#15140)
* 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
2025-04-10 15:40:39 +00:00

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.")
}