Skip to content

Commit

Permalink
macos fixes continued
Browse files Browse the repository at this point in the history
  • Loading branch information
Razz4780 committed Oct 23, 2023
1 parent 3178886 commit 1d5c005
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions mirrord/layer/tests/fileops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async fn read_from_mirrord_bin(dylib_path: &PathBuf) {
vec![path_in_mirrord_bin.to_string_lossy().to_string()],
);

let (mut test_process, mut intproxy) = application
let (mut test_process, _intproxy) = application
.start_process_with_layer(dylib_path, vec![], None)
.await;

Expand Down Expand Up @@ -169,8 +169,7 @@ async fn pwrite(
.send(DaemonMessage::File(FileResponse::Xstat(Ok(
XstatResponse { metadata },
))))
.await
.unwrap();
.await;

// fstat test
assert_eq!(
Expand All @@ -193,8 +192,7 @@ async fn pwrite(
.send(DaemonMessage::File(FileResponse::Xstat(Ok(
XstatResponse { metadata },
))))
.await
.unwrap();
.await;
}
// Assert all clear
test_process.wait_assert_success().await;
Expand Down Expand Up @@ -348,7 +346,7 @@ async fn go_dir(
intproxy.expect_file_open_for_reading("/tmp/foo", fd).await;

assert_eq!(
intproxy.recv().await;,
intproxy.recv().await,
ClientMessage::FileRequest(FileRequest::Xstat(XstatRequest {
path: None,
fd: Some(1),
Expand All @@ -372,7 +370,7 @@ async fn go_dir(
.await;

assert_eq!(
layer_connection.recv.recv().await,
layer_connection.recv().await,

Check failure on line 373 in mirrord/layer/tests/fileops.rs

View workflow job for this annotation

GitHub Actions / macos_tests

cannot find value `layer_connection` in this scope
ClientMessage::FileRequest(FileRequest::FdOpenDir(FdOpenDirRequest { remote_fd: 1 }))
);

Expand Down

0 comments on commit 1d5c005

Please sign in to comment.