mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-01 23:41:03 +00:00
fix tests
This commit is contained in:
parent
e59e57d8a5
commit
12b53a48ad
@ -348,7 +348,7 @@ mod open_test {
|
|||||||
let fd_3 = open_result_3.unwrap();
|
let fd_3 = open_result_3.unwrap();
|
||||||
assert!(fd_3 > 0, "File descriptor was less than 0.");
|
assert!(fd_3 > 0, "File descriptor was less than 0.");
|
||||||
|
|
||||||
let close_result = vfs.close(fd_3);
|
let close_result = vfs.close(&fd_3);
|
||||||
assert!(close_result.is_ok(), "Close failed.");
|
assert!(close_result.is_ok(), "Close failed.");
|
||||||
|
|
||||||
// re-open the file, assert the file descriptor is the same
|
// re-open the file, assert the file descriptor is the same
|
||||||
@ -365,7 +365,7 @@ mod open_test {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// close a lower file descriptor
|
// close a lower file descriptor
|
||||||
let close_result_2 = vfs.close(fd_1);
|
let close_result_2 = vfs.close(&fd_1);
|
||||||
assert!(close_result_2.is_ok(), "Close failed");
|
assert!(close_result_2.is_ok(), "Close failed");
|
||||||
|
|
||||||
// re-open the file, assert the file descriptor is the same
|
// re-open the file, assert the file descriptor is the same
|
||||||
|
Loading…
x
Reference in New Issue
Block a user