-
Notifications
You must be signed in to change notification settings - Fork 696
Open
Labels
kind/bugFeature doesn't work as expected.Feature doesn't work as expected.
Description
I hit this assertion
assert(self.lifecycleManager.isActive) |
when running the NIO tests in a tight sandbox. Output
Test Suite 'All tests' started at 2023-07-11 05:46:11.149.
Test Suite 'swift-nioPackageTests.xctest' started at 2023-07-11 05:46:11.153.
Test Suite 'AcceptBackoffHandlerTest' started at 2023-07-11 05:46:11.154.
Test Case '-[NIOPosixTests.AcceptBackoffHandlerTest testChannelInactiveCancelScheduled]' started.
swift-nio/Tests/NIOPosixTests/AcceptBackoffHandlerTest.swift:268: error: -[NIOPosixTests.AcceptBackoffHandlerTest testChannelInactiveCancelScheduled] : XCTAssertNoThrow failed: threw error "bind(descriptor:ptr:bytes:): Operation not permitted (errno: 1)"
NIOPosix/BaseSocketChannel.swift:1077: Assertion failed
The sandbox disallows bind
and other network related stuff. So it's expected that the tests fail but I wouldn't expect an assertion to be hit.
This can probably be tested with the SAL (syscall abstraction layer) because that should make it easy to make bind
fail with EPERM
(== 1
).
Metadata
Metadata
Assignees
Labels
kind/bugFeature doesn't work as expected.Feature doesn't work as expected.