Skip to content

Commit

Permalink
Bumped the number of iterations for testFDSetBitFields() function fro…
Browse files Browse the repository at this point in the history
…m 128 to 1024, the default number of open descriptors on Linux.
  • Loading branch information
billabt committed Feb 23, 2018
1 parent 5966ea3 commit 9e9af20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/SocketTests/SocketTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9e9af20

Please sign in to comment.