summaryrefslogtreecommitdiffstats
path: root/pkg/gui
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-15 20:24:19 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-17 19:14:59 +1100
commit2691477aff8505275488e35af7611fb78b53b328 (patch)
treefae3722004872d57ee652e54656c8f0f01bb3e96 /pkg/gui
parent8ca71eeb362aebbb8b148f0ef2fc58d33fc05ee0 (diff)
allow sandbox mode with integration tests
Diffstat (limited to 'pkg/gui')
-rw-r--r--pkg/gui/gui_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/gui/gui_test.go b/pkg/gui/gui_test.go
index 6e7a26b79..e35ab1896 100644
--- a/pkg/gui/gui_test.go
+++ b/pkg/gui/gui_test.go
@@ -39,8 +39,7 @@ import (
// original playback speed. Speed may be a decimal.
func Test(t *testing.T) {
- record := false
- updateSnapshots := os.Getenv("UPDATE_SNAPSHOTS") != ""
+ mode := integration.GetModeFromEnv()
speedEnv := os.Getenv("SPEED")
includeSkipped := os.Getenv("INCLUDE_SKIPPED") != ""
@@ -53,8 +52,7 @@ func Test(t *testing.T) {
assert.NoError(t, err)
})
},
- updateSnapshots,
- record,
+ mode,
speedEnv,
func(t *testing.T, expected string, actual string, prefix string) {
assert.Equal(t, expected, actual, fmt.Sprintf("Unexpected %s. Expected:\n%s\nActual:\n%s\n", prefix, expected, actual))