mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 13:47:19 +00:00
19 lines
421 B
Go
19 lines
421 B
Go
|
package rpcclient
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"testing"
|
||
|
|
||
|
"github.com/nspcc-dev/neo-go/pkg/neorpc"
|
||
|
"github.com/stretchr/testify/require"
|
||
|
)
|
||
|
|
||
|
func TestInternalClientClose(t *testing.T) {
|
||
|
icl, err := NewInternal(context.TODO(), func(ctx context.Context, ch chan<- neorpc.Notification) func(*neorpc.Request) (*neorpc.Response, error) {
|
||
|
return nil
|
||
|
})
|
||
|
require.NoError(t, err)
|
||
|
icl.Close()
|
||
|
require.NoError(t, icl.GetError())
|
||
|
}
|