Skip to content

Commit 29e8776

Browse files
tomusdrwTyera Eulberg
authored andcommitted
Fix windows build. (paritytech#329)
1 parent 9ebcc76 commit 29e8776

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tcp/src/tests.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,13 @@ fn peer_meta() {
212212
b"{\"jsonrpc\": \"2.0\", \"method\": \"say_hello\", \"params\": [42, 23], \"id\": 1}\n"[..].to_owned()
213213
);
214214

215+
println!("{}", result);
216+
215217
// contains random port, so just smoky comparing response length
216218
assert_eq!(
217-
59,
219+
if cfg!(windows) { 58 } else { 59 },
218220
result.len()
219-
);
221+
);
220222
}
221223

222224
#[derive(Default)]

0 commit comments

Comments
 (0)