mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
ci: reduce flakyness of cmd/tools/vcover/cover_test.v (workaround for a race condition while updating the OK tasks counter in v test
)
This commit is contained in:
parent
46a78ca31b
commit
2ebbbd8aeb
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ fn test_simple() {
|
||||||
// Run both tests. The coverage should be combined and == 100%
|
// Run both tests. The coverage should be combined and == 100%
|
||||||
r3 := os.execute('${os.quoted_path(vexe)} -coverage ${os.quoted_path(t3)} test cmd/tools/vcover/testdata/simple/')
|
r3 := os.execute('${os.quoted_path(vexe)} -coverage ${os.quoted_path(t3)} test cmd/tools/vcover/testdata/simple/')
|
||||||
assert r3.exit_code == 0, r3.str()
|
assert r3.exit_code == 0, r3.str()
|
||||||
assert r3.output.trim_space().contains('Summary for all V _test.v files: 2 passed'), r3.str()
|
assert r3.output.trim_space().contains('Summary for all V _test.v files: '), r3.str()
|
||||||
assert os.exists(t3), t3
|
assert os.exists(t3), t3
|
||||||
filter3 := os.execute('${os.quoted_path(vexe)} cover ${os.quoted_path(t3)} --filter simple/')
|
filter3 := os.execute('${os.quoted_path(vexe)} cover ${os.quoted_path(t3)} --filter simple/')
|
||||||
assert filter3.exit_code == 0, filter3.str()
|
assert filter3.exit_code == 0, filter3.str()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue