LibCore: Prefer Error::is_errno over Error::is_syscall

These are the only users of the latter, so let's just use is_errno
(which will effectively give us the same result) to avoid confusion
over these.
This commit is contained in:
Timothy Flynn 2025-05-10 16:35:59 -04:00 committed by Tim Flynn
commit 08e82ddaf0
Notes: github-actions[bot] 2025-05-11 01:20:49 +00:00
2 changed files with 4 additions and 4 deletions

View file

@ -178,7 +178,7 @@ TEST_CASE(should_error_when_connection_fails)
auto maybe_tcp_socket = Core::TCPSocket::connect({ { 127, 0, 0, 1 }, 1234 });
EXPECT(maybe_tcp_socket.is_error());
EXPECT(maybe_tcp_socket.error().is_syscall());
EXPECT(maybe_tcp_socket.error().is_errno());
EXPECT(maybe_tcp_socket.error().code() == ECONNREFUSED);
}