From 12b53a48adfa302ad1d84df4742d61a144757920 Mon Sep 17 00:00:00 2001 From: Mackenzie Clark Date: Sun, 24 Mar 2019 17:54:52 -0700 Subject: [PATCH] fix tests --- lib/runtime-abi/src/vfs/vfs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/runtime-abi/src/vfs/vfs.rs b/lib/runtime-abi/src/vfs/vfs.rs index e6db09d41..9b60a9672 100644 --- a/lib/runtime-abi/src/vfs/vfs.rs +++ b/lib/runtime-abi/src/vfs/vfs.rs @@ -348,7 +348,7 @@ mod open_test { let fd_3 = open_result_3.unwrap(); 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."); // re-open the file, assert the file descriptor is the same @@ -365,7 +365,7 @@ mod open_test { ); // 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"); // re-open the file, assert the file descriptor is the same