summaryrefslogtreecommitdiffstats
path: root/pkg/integration/deprecated/integration.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-08-11 21:28:55 +1000
committerJesse Duffield <jessedduffield@gmail.com>2022-08-13 13:55:09 +1000
commit610eddfe05cf68861bcfa1566d0d2d43aacab3fc (patch)
tree5bf0bfa66a92161f2a22f2fa952530ce3ab8a79e /pkg/integration/deprecated/integration.go
parent1ef6f4c0e1f71d1285b9892b94c6e519d2739521 (diff)
fix CI
Diffstat (limited to 'pkg/integration/deprecated/integration.go')
-rw-r--r--pkg/integration/deprecated/integration.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/integration/deprecated/integration.go b/pkg/integration/deprecated/integration.go
index 5f597fc81..92528b8ad 100644
--- a/pkg/integration/deprecated/integration.go
+++ b/pkg/integration/deprecated/integration.go
@@ -22,7 +22,7 @@ import (
// This package is for running our integration test suite. See https://github.com/jesseduffield/lazygit/blob/master/pkg/integration/README.mdfor more info.
-type Test struct {
+type IntegrationTest struct {
Name string `json:"name"`
Speed float64 `json:"speed"`
Description string `json:"description"`
@@ -66,7 +66,7 @@ func GetModeFromEnv() Mode {
func RunTests(
logf func(format string, formatArgs ...interface{}),
runCmd func(cmd *exec.Cmd) error,
- fnWrapper func(test *Test, f func(*testing.T) error),
+ fnWrapper func(test *IntegrationTest, f func(*testing.T) error),
mode Mode,
speedEnv string,
onFail func(t *testing.T, expected string, actual string, prefix string),
@@ -315,13 +315,13 @@ func getTestSpeeds(testStartSpeed float64, mode Mode, speedStr string) []float64
return speeds
}
-func LoadTests(testDir string) ([]*Test, error) {
+func LoadTests(testDir string) ([]*IntegrationTest, error) {
paths, err := filepath.Glob(filepath.Join(testDir, "/*/test.json"))
if err != nil {
return nil, err
}
- tests := make([]*Test, len(paths))
+ tests := make([]*IntegrationTest, len(paths))
for i, path := range paths {
data, err := ioutil.ReadFile(path)
@@ -329,7 +329,7 @@ func LoadTests(testDir string) ([]*Test, error) {
return nil, err
}
- test := &Test{}
+ test := &IntegrationTest{}
err = json.Unmarshal(data, test)
if err != nil {