forked from TrueCloudLab/neoneo-go
rpc/client: fix broken test code
SA1024: cutset contains duplicate characters (staticcheck)
This commit is contained in:
parent
b8ba923874
commit
d15cacc1ba
1 changed files with 1 additions and 1 deletions
|
@ -344,7 +344,7 @@ func TestNewWS(t *testing.T) {
|
|||
require.NoError(t, c.Init())
|
||||
})
|
||||
t.Run("bad URL", func(t *testing.T) {
|
||||
_, err := NewWS(context.TODO(), strings.Trim(srv.URL, "http://"), Options{})
|
||||
_, err := NewWS(context.TODO(), strings.TrimPrefix(srv.URL, "http://"), Options{})
|
||||
require.Error(t, err)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue