From c6a7d0a3a06070ec9da371d993b233c47bae8108 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 1 Jun 2020 18:30:17 +0300 Subject: [PATCH] tests: update the remaining erroring tests, CI should be green now --- vlib/os/inode_test.v | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/vlib/os/inode_test.v b/vlib/os/inode_test.v index 7e875486d5..4a95796886 100644 --- a/vlib/os/inode_test.v +++ b/vlib/os/inode_test.v @@ -24,9 +24,10 @@ fn testsuite_end() { fn test_inode_file_type() { filename := './test1.txt' - if file := os.open_file(filename, 'w', 0o600) { - file.close() + mut file := os.open_file(filename, 'w', 0o600) or { + return } + file.close() mode := os.inode(filename) os.rm(filename) assert mode.typ == .regular @@ -34,9 +35,10 @@ fn test_inode_file_type() { fn test_inode_file_owner_permission() { filename := './test2.txt' - if file := os.open_file(filename, 'w', 0o600) { - file.close() + mut file := os.open_file(filename, 'w', 0o600) or { + return } + file.close() mode := os.inode(filename) os.rm(filename) assert mode.owner.read