Skip to content

Commit

Permalink
fix(fs): test of named_pipe should treat pipe_connect as Ok(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
Berrysoft committed Mar 21, 2024
1 parent c5e8d6f commit 96104e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compio-fs/src/named_pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ impl NamedPipeServer {
///
/// // Write fails with an OS-specific error after client has been
/// // disconnected.
/// let e = client.write("ping").await.0.unwrap_err();
/// assert_eq!(e.raw_os_error(), Some(ERROR_PIPE_NOT_CONNECTED as i32));
/// let e = client.write("ping").await.0.unwrap();
/// assert_eq!(e, 0);
/// # })
/// ```
pub fn disconnect(&self) -> io::Result<()> {
Expand Down

0 comments on commit 96104e9

Please sign in to comment.