Skip to content

Commit

Permalink
Fix failing nodejs integration test on macos (#2938)
Browse files Browse the repository at this point in the history
* Fix test?

* only resolv?
  • Loading branch information
DmitryDodzin authored Nov 27, 2024
1 parent 7f09ee5 commit 13ac0a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog.d/2935.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add `expect_file_open_for_reading` for /etc/resolv.conf path in `test_issue2283` test.
8 changes: 4 additions & 4 deletions mirrord/layer/tests/issue2283.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ async fn test_issue2283(

if cfg!(target_os = "macos") {
intproxy
.expect_file_open_for_reading("/etc/hostname", 2137)
.expect_file_open_for_reading("/etc/resolv.conf", 2136)
.await;
intproxy.expect_only_file_read(2137).await;
intproxy.expect_only_file_read(2136).await;
intproxy
.answer_file_read("metalbear-hostname".as_bytes().to_vec())
.answer_file_read("search home\nnameserver 10.0.0.138\n".as_bytes().to_vec())
.await;
intproxy.expect_file_close(2137).await;
intproxy.expect_file_close(2136).await;
}

let message = intproxy.recv().await;
Expand Down

0 comments on commit 13ac0a0

Please sign in to comment.