You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
I hit this assertion
swift-nio/Sources/NIOPosix/BaseSocketChannel.swift
Line 1077 in 324bc65
when running the NIO tests in a tight sandbox. Output
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 withEPERM
(==1
).The text was updated successfully, but these errors were encountered: