Skip to content

Commit

Permalink
Fix test deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rwojsznis committed Jan 26, 2024
1 parent bda6a43 commit 92d3b1d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package internal

import (
"fmt"
"io/ioutil"
"os"
"os/exec"
"testing"
Expand All @@ -26,11 +25,11 @@ func TestRunnerFirstRun(t *testing.T) {
}

func TestRunnerSecondRun(t *testing.T) {
tempFile, err := ioutil.TempFile("", "config")
tempFile, err := os.CreateTemp("", "config")
assert.NoError(t, err)
defer os.Remove(tempFile.Name())

scriptFile, err := ioutil.TempFile("", "script")
scriptFile, err := os.CreateTemp("", "script")
assert.NoError(t, err)
defer os.Remove(scriptFile.Name())

Expand Down

0 comments on commit 92d3b1d

Please sign in to comment.