diff options
Diffstat (limited to 'internal/git/pktline/read_monitor_test.go')
-rw-r--r-- | internal/git/pktline/read_monitor_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/git/pktline/read_monitor_test.go b/internal/git/pktline/read_monitor_test.go index 5558dd5e5..e34cc2e6a 100644 --- a/internal/git/pktline/read_monitor_test.go +++ b/internal/git/pktline/read_monitor_test.go @@ -4,7 +4,6 @@ import ( "bytes" "context" "io" - "io/ioutil" "os" "strings" "testing" @@ -41,7 +40,7 @@ func TestReadMonitorTimeout(t *testing.T) { require.True(t, elapsed < time.Second, "Expected context to be cancelled quickly, but it was not") // Verify that pipe is closed - _, err = ioutil.ReadAll(r) + _, err = io.ReadAll(r) require.Error(t, err) require.IsType(t, &os.PathError{}, err) } |