mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
f28b47bd87
* add changes * comment * kasey's review Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
23 lines
505 B
Go
23 lines
505 B
Go
package fdlimits_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
gethLimit "github.com/ethereum/go-ethereum/common/fdlimit"
|
|
"github.com/prysmaticlabs/prysm/runtime/fdlimits"
|
|
"github.com/prysmaticlabs/prysm/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.")
|
|
|
|
}
|