diff --git a/justrun.go b/justrun.go index 08ea170..24663bf 100644 --- a/justrun.go +++ b/justrun.go @@ -74,7 +74,7 @@ func main() { waitForCommand: *waitForCommand, } - sigCh := make(chan os.Signal) + sigCh := make(chan os.Signal, 10) signal.Notify(sigCh, os.Interrupt, syscall.SIGTERM) go waitForInterrupt(sigCh, cmd) diff --git a/justrun_test.go b/justrun_test.go index b5dedd8..2ab5a7c 100644 --- a/justrun_test.go +++ b/justrun_test.go @@ -4,7 +4,6 @@ package main import ( "crypto/rand" - "io/ioutil" "os" "path/filepath" "runtime" @@ -252,7 +251,7 @@ func watchTest(fs *fileSystem, inputPaths, ignoredPaths []string, cmdCh chan<- e } func newFS(t *testing.T) *fileSystem { - name, err := ioutil.TempDir("", "justrun_tests_") + name, err := os.MkdirTemp("", "justrun_tests_") if err != nil { t.Fatalf("unable to create temporary directory") }