mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-13 05:45:02 +00:00
17 lines
286 B
Go
17 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()
|
||
|
}
|