Increase number of retries for all retriable tests on github actions

This commit is contained in:
David Dworken 2023-09-04 21:21:13 -07:00
parent adbd87a81e
commit f778c1b2b6
No known key found for this signature in database

View File

@ -174,6 +174,9 @@ func TestParam(t *testing.T) {
func runTestsWithRetries(parentT *testing.T, testName string, testFunc func(t testing.TB)) {
numRetries := 3
if testutils.IsGithubAction() {
numRetries = 5
}
runTestsWithExtraRetries(parentT, testName, testFunc, numRetries)
}
@ -1868,6 +1871,8 @@ func testTui_search(t testing.TB) {
defer testutils.BackupAndRestore(t)()
tester, _, _ := setupTestTui(t)
// TODO: Consider adding a hishtory export test here to confirm that the relevant entries truly are getting stored properly, since this flakes even with 7 retries
// Check the output when there is a search
out := captureTerminalOutput(t, tester, []string{
"hishtory SPACE tquery ENTER",