Skip to content

Commit

Permalink
Merge pull request #1 from huitseeker/windows-fixes
Browse files Browse the repository at this point in the history
Windows test fixes
  • Loading branch information
huitseeker authored Nov 10, 2021
2 parents db39bb0 + 23a49d8 commit 89c1f54
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fastpay/src/unit_tests/transport_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use tokio::{runtime::Runtime, time::timeout};
async fn get_new_local_address() -> Result<String, std::io::Error> {
let builder = net2::TcpBuilder::new_v4()?;
builder.reuse_address(true)?;
builder.bind("0.0.0.0:0")?;
builder.bind("127.0.0.1:0")?;
Ok(format!("{}", builder.local_addr()?))
}

Expand Down
1 change: 1 addition & 0 deletions fastpay_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ structopt = "0.3.21"
similar-asserts = { version = "1.1.0" }
serde-reflection = "0.3.2"
serde_yaml = "0.8.17"
assert-str = "0.1"

[[example]]
name = "generate-format"
Expand Down
2 changes: 1 addition & 1 deletion fastpay_core/src/generate_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn main() {
Action::Test => {
let reference = std::fs::read_to_string(FILE_PATH).unwrap();
let content = serde_yaml::to_string(&registry).unwrap() + "\n";
similar_asserts::assert_str_eq!(&reference, &content);
assert_str::assert_str_eq!(&reference, &content);
}
}
}

0 comments on commit 89c1f54

Please sign in to comment.