Bumped the number of iterations for testFDSetBitFields() function from 128 to 1024, the default number of open descriptors on Linux.

This commit is contained in:
Bill Abt
2018-02-23 08:57:43 -05:00
parent 5966ea32e9
commit 9e9af202f4
+3 -1
View File
@@ -1129,7 +1129,9 @@ class SocketTests: XCTestCase {
var fdSet = fd_set()
fdSet.zero()
for i: Int32 in 0...128 {
// The default number of max open file descriptors on Linux is 1024. On macOS,
// the default is unlimited. I think checking for 1024 should be enough...
for i: Int32 in 0...1024 {
fdSet.set(i)
XCTAssertTrue(fdSet.isSet(i))
fdSet.clear(i)