diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-03 13:58:47 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-03 13:58:47 +0100 |
commit | 06d32a0c177e4166ff0491668cd459464bc2ef45 (patch) | |
tree | 7170e33bcc8e37240d37f053e9bb75aa17c09de8 /src/testdir/shared.vim | |
parent | 89083466fa565bea22832687ec5fe89a70a3b8f7 (diff) |
patch 9.0.0369: a failing flaky test doesn't mention the timev9.0.0369
Problem: A failing flaky test doesn't mention the time.
Solution: Add the time for debugging. Improve error message.
Diffstat (limited to 'src/testdir/shared.vim')
-rw-r--r-- | src/testdir/shared.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/shared.vim b/src/testdir/shared.vim index 0f0ffe878a..72cf8368cf 100644 --- a/src/testdir/shared.vim +++ b/src/testdir/shared.vim @@ -98,16 +98,16 @@ func RunServer(cmd, testfunc, args) try let g:currentJob = RunCommand(pycmd) - " Wait for up to 2 seconds for the port number to be there. + " Wait for some time for the port number to be there. let port = GetPort() if port == 0 - call assert_false(1, "Can't start " . a:cmd) + call assert_report(strftime("%T") .. " Can't start " .. a:cmd) return endif call call(function(a:testfunc), [port]) catch - call assert_false(1, 'Caught exception: "' . v:exception . '" in ' . v:throwpoint) + call assert_report('Caught exception: "' . v:exception . '" in ' . v:throwpoint) finally call s:kill_server(a:cmd) endtry |