Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit 7b8233f

Browse files
committed
Fixed ignoring on Windows
1 parent 36f116a commit 7b8233f

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

internal/executor/executor_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
package executor_test
1+
package executor
22

33
import (
44
"github.com/cirruslabs/cirrus-ci-agent/api"
5-
"github.com/cirruslabs/cirrus-ci-agent/internal/executor"
65
"github.com/stretchr/testify/require"
76
"testing"
87
)
@@ -51,7 +50,7 @@ func TestLimitCommands(t *testing.T) {
5150

5251
for _, example := range examples {
5352
t.Run(example.Description, func(t *testing.T) {
54-
require.Equal(t, example.Expected, executor.BoundedCommands(commands, example.FromName, example.ToName))
53+
require.Equal(t, example.Expected, BoundedCommands(commands, example.FromName, example.ToName))
5554
})
5655
}
5756
}

internal/executor/executor_unix_test.go

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
// +build !windows !freebsd
1+
// +build !windows
22

3-
package executor_test
3+
package executor
44

55
import (
6-
"github.com/cirruslabs/cirrus-ci-agent/internal/executor"
76
"github.com/stretchr/testify/require"
87
"os"
98
"testing"
@@ -12,11 +11,11 @@ import (
1211
func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
1312
tmpDirToRestore := os.Getenv("TMPDIR")
1413
_ = os.Setenv("TMPDIR", "/tmp")
15-
e := &executor.Executor{}
16-
ePreCreate := &executor.Executor{}
14+
e := &Executor{}
15+
ePreCreate := &Executor{}
1716
ePreCreate.SetPreCreatedWorkingDir("/tmp/precreated-build")
1817
examples := []struct {
19-
Executor *executor.Executor
18+
Executor *Executor
2019
Description string
2120
Given, Expected map[string]string
2221
}{

0 commit comments

Comments
 (0)