mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 12:27:18 +00:00
d17996f8b0
* Update V3 from V4 * Fix build v3 -> v4 * Update ssz * Update beacon_chain.pb.go * Fix formatter import * Update update-mockgen.sh comment to v4 * Fix conflicts. Pass build and tests * Fix test
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/v4/runtime/fdlimits"
|
|
"github.com/prysmaticlabs/prysm/v4/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.")
|
|
|
|
}
|