Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ofalvai committed Nov 9, 2023
1 parent 6081898 commit 8673218
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion configs/agent_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ import (
"path/filepath"
"reflect"
"testing"

"github.com/stretchr/testify/require"
)

func TestReadAgentConfig(t *testing.T) {
t.Setenv("BITRISE_APP_SLUG", "ef7a9665e8b6408b")
t.Setenv("BITRISE_BUILD_SLUG", "80b66786-d011-430f-9c68-00e9416a7325")
tempDir := t.TempDir()
t.Setenv("HOOKS_DIR", tempDir)
ioutil.WriteFile(filepath.Join(tempDir, "cleanup.sh"), []byte("echo cleanup.sh"), 0644)
err := ioutil.WriteFile(filepath.Join(tempDir, "cleanup.sh"), []byte("echo cleanup.sh"), 0644)
require.NoError(t, err)

testCases := []struct {
name string
Expand Down

0 comments on commit 8673218

Please sign in to comment.