From 58dd9ee6a28192efa89c908b426ecdea4317154d Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 1 Apr 2023 17:33:44 +0300 Subject: [PATCH] tests: make the flaky array_access_optimisation_test.v failures on the macos CI, more easily diagnosable --- vlib/v/tests/array_access_optimisation_test.v | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vlib/v/tests/array_access_optimisation_test.v b/vlib/v/tests/array_access_optimisation_test.v index 86188dcb18..06db6533d0 100644 --- a/vlib/v/tests/array_access_optimisation_test.v +++ b/vlib/v/tests/array_access_optimisation_test.v @@ -39,7 +39,12 @@ fn test_array_optimisation() { p.wait() p.close() - assert stdout.contains('// THE END.') + ending := '// THE END.' + it_ends_properly := stdout.contains(ending) + if !it_ends_properly { + dump(stdout) + } + assert it_ends_properly for line in stdout.split('\n') { direct(line)