Logo
Explore Help
Sign In
fluencelabs/go-libp2p-kad-dht
1
0
Fork 0
You've already forked go-libp2p-kad-dht
mirror of https://github.com/fluencelabs/go-libp2p-kad-dht synced 2025-05-10 05:27:12 +00:00
Code Issues Projects Releases Wiki Activity
go-libp2p-kad-dht/nofile_test_posix.go

13 lines
236 B
Go
Raw Normal View History

make it work in wasm
2019-03-21 13:46:16 -07:00
// +build !windows,!wasm
Deflake TestFindPeerQuery (#245) * Rework TestFindPeersQuery Unravel the logic and create a minimal test case that isn't flaky. * Use testing.T.Logf * Skip the original test in short mode * Add comments for the arguments to testFindPeerQuery * Qualify aberrant package name * Use redundant package names * gx import testify 1.3.0.
2019-02-05 10:35:37 +11:00
package dht
import "syscall"
func curFileLimit() uint64 {
var n syscall.Rlimit
syscall.Getrlimit(syscall.RLIMIT_NOFILE, &n)
test: fix tests on freebsd
2019-02-07 17:33:57 -08:00
// cast because some platforms use int64 (e.g., freebsd)
return uint64(n.Cur)
Deflake TestFindPeerQuery (#245) * Rework TestFindPeersQuery Unravel the logic and create a minimal test case that isn't flaky. * Use testing.T.Logf * Skip the original test in short mode * Add comments for the arguments to testFindPeerQuery * Qualify aberrant package name * Use redundant package names * gx import testify 1.3.0.
2019-02-05 10:35:37 +11:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 54ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API