mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-12 03:19:36 +03:00
Move from deprecated ioutil to os and io packages (#744)
This commit is contained in:
@ -2,7 +2,7 @@ package scenarios
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"testing"
|
||||
@ -642,7 +642,7 @@ func TestDomainSniffing(t *testing.T) {
|
||||
if resp.StatusCode != 200 {
|
||||
t.Error("unexpected status code: ", resp.StatusCode)
|
||||
}
|
||||
common.Must(resp.Write(ioutil.Discard))
|
||||
common.Must(resp.Write(io.Discard))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user