mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 00:27:38 +00:00
5a66807989
* First take at updating everything to v5 * Patch gRPC gateway to use prysm v5 Fix patch * Update go ssz --------- Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
23 lines
511 B
Go
23 lines
511 B
Go
package fdlimits_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
gethLimit "github.com/ethereum/go-ethereum/common/fdlimit"
|
|
"github.com/prysmaticlabs/prysm/v5/runtime/fdlimits"
|
|
"github.com/prysmaticlabs/prysm/v5/testing/assert"
|
|
)
|
|
|
|
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.")
|
|
|
|
}
|