From ec585b4a5405e52c0589d2e9187089fa4e121c14 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 22 Jul 2021 13:26:23 +0300 Subject: [PATCH] os: fix sporadic failing glob_test.v --- vlib/os/glob_test.v | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vlib/os/glob_test.v b/vlib/os/glob_test.v index 1a28c21b6e..c47311bbf7 100644 --- a/vlib/os/glob_test.v +++ b/vlib/os/glob_test.v @@ -41,15 +41,15 @@ fn test_glob_can_find_v_files_3_levels_deep() ? { fn test_glob_can_find_files_in_current_folder() ? { os.chdir(@VMODROOT) matches := os.glob('*') ? + assert '.gitignore' in matches + assert 'make.bat' in matches + assert 'Makefile' in matches + assert 'Dockerfile' in matches assert 'README.md' in matches assert 'v.mod' in matches assert 'cmd/' in matches assert 'vlib/' in matches - for f in matches { - if !f.ends_with(os.path_separator) { - assert !f.ends_with('.v') - } - } + assert 'thirdparty/' in matches } fn test_glob_can_be_used_with_multiple_patterns() ? {