summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui_test.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-05 22:18:36 +1000
committerJesse Duffield <jessedduffield@gmail.com>2021-04-06 19:34:32 +1000
commitd7da6dde0eac7f67350af7292873f976559899f3 (patch)
treec8ffdc5f4feff0e664bf2f6cd78c16261e3ffa73 /pkg/gui/gui_test.go
parente000620cdfbea44ab2b8928207781bc5fa5d9d5f (diff)
allow decimal replay speeds for integration tests
Diffstat (limited to 'pkg/gui/gui_test.go')
-rw-r--r--pkg/gui/gui_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/gui_test.go b/pkg/gui/gui_test.go
index 887b48de8..c6f945ae9 100644
--- a/pkg/gui/gui_test.go
+++ b/pkg/gui/gui_test.go
@@ -34,7 +34,7 @@ import (
// To override speed, pass e.g. `SPEED=1` as an env var. Otherwise we start each test
// at a high speed and then drop down to lower speeds upon each failure until finally
// trying at the original playback speed (speed 1). A speed of 2 represents twice the
-// original playback speed. Speed must be an integer.
+// original playback speed. Speed may be a decimal.
func Test(t *testing.T) {
rootDir := integration.GetRootDirectory()
@@ -66,7 +66,7 @@ func Test(t *testing.T) {
// 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)
+ t.Logf("%s: attempting test at speed %f\n", test.Name, speed)
integration.FindOrCreateDir(testPath)
integration.PrepareIntegrationTestDir(actualDir)
@@ -102,7 +102,7 @@ func Test(t *testing.T) {
assert.NoError(t, err)
if expected == actual {
- t.Logf("%s: success at speed %d\n", test.Name, speed)
+ t.Logf("%s: success at speed %f\n", test.Name, speed)
break
}