neo-go/pkg/rpc/client/wsclient_test.go
2020-05-04 16:54:35 +03:00

16 lines
286 B
Go

package client
import (
"context"
"testing"
"github.com/stretchr/testify/require"
)
func TestWSClientClose(t *testing.T) {
srv := initTestServer(t, "")
defer srv.Close()
wsc, err := NewWS(context.TODO(), httpURLtoWS(srv.URL), Options{})
require.NoError(t, err)
wsc.Close()
}