1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-17 21:18:31 +02:00

retry flakey tests

This commit is contained in:
Jesse Duffield 2021-04-05 21:37:54 +10:00
parent 5ce9e0193a
commit 91a107eb6f

View File

@ -63,6 +63,8 @@ func Test(t *testing.T) {
expectedDir := filepath.Join(testPath, "expected")
t.Logf("testPath: %s, actualDir: %s, expectedDir: %s", testPath, actualDir, expectedDir)
// three retries at normal speed for the sake of flakey tests
speeds = append(speeds, 1, 1, 1)
for i, speed := range speeds {
t.Logf("%s: attempting test at speed %d\n", test.Name, speed)