Skip to content

Commit

Permalink
fixup tempDir
Browse files Browse the repository at this point in the history
  • Loading branch information
tnasu committed Dec 21, 2022
1 parent 67d5cd8 commit 8672484
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/generator/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ package main

import (
"github.com/stretchr/testify/require"
"io/ioutil"
"os"
"testing"
)

func TestNewCLI(t *testing.T) {
tempDir := os.TempDir() //nolint:staticcheck
tempDir, err := ioutil.TempDir("", "runner")
require.NoError(t, err)
defer os.RemoveAll(tempDir) //nolint:staticcheck
cmd := NewCLI()
testcases := []struct {
Expand Down

0 comments on commit 8672484

Please sign in to comment.