mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-25 08:05:17 +00:00
24 lines
350 B
Go
24 lines
350 B
Go
|
//go:build !windows && !wasm
|
||
|
|
||
|
package dht
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"os"
|
||
|
"testing"
|
||
|
|
||
|
"syscall"
|
||
|
)
|
||
|
|
||
|
func TestMain(m *testing.M) {
|
||
|
err := syscall.Setrlimit(syscall.RLIMIT_NOFILE, &syscall.Rlimit{
|
||
|
Cur: 4096,
|
||
|
Max: 4096,
|
||
|
})
|
||
|
if err != nil {
|
||
|
fmt.Println("failed to increase open file descriptor limit, can't run tests")
|
||
|
os.Exit(1)
|
||
|
}
|
||
|
os.Exit(m.Run())
|
||
|
}
|