From 48b3ab831b10dced0fc0d2614375ae2d230fc696 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 15 Jun 2021 14:13:12 +0300 Subject: [PATCH] ci: fix failing test test_realpath_existing for os.real_path on macos --- vlib/os/os_test.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vlib/os/os_test.v b/vlib/os/os_test.v index 2c0aca63ad..2f57f165ee 100644 --- a/vlib/os/os_test.v +++ b/vlib/os/os_test.v @@ -308,7 +308,9 @@ fn test_realpath_existing() { os.rm(existing_file) or {} os.write_file(existing_file, 'abc') or {} assert os.exists(existing_file) - assert os.real_path(existing_file) == existing_file + rpath := os.real_path(existing_file) + assert os.is_abs_path(rpath) + assert rpath.ends_with(existing_file_name) os.rm(existing_file) or {} }