diff --git a/pkg/rpcclient/actor/compat_test.go b/pkg/rpcclient/actor/compat_test.go new file mode 100644 index 000000000..b8e356898 --- /dev/null +++ b/pkg/rpcclient/actor/compat_test.go @@ -0,0 +1,19 @@ +package actor_test + +import ( + "testing" + + "github.com/nspcc-dev/neo-go/pkg/rpcclient" + "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" +) + +func TestRPCActorRPCClientCompat(t *testing.T) { + _ = actor.RPCActor(&rpcclient.WSClient{}) + _ = actor.RPCActor(&rpcclient.Client{}) +} + +func TestRPCWaiterRPCClientCompat(t *testing.T) { + _ = actor.RPCPollingWaiter(&rpcclient.Client{}) + _ = actor.RPCPollingWaiter(&rpcclient.WSClient{}) + _ = actor.RPCEventWaiter(&rpcclient.WSClient{}) +} diff --git a/pkg/rpcclient/invoker/compat_test.go b/pkg/rpcclient/invoker/compat_test.go new file mode 100644 index 000000000..1c875da6d --- /dev/null +++ b/pkg/rpcclient/invoker/compat_test.go @@ -0,0 +1,16 @@ +package invoker_test + +import ( + "testing" + + "github.com/nspcc-dev/neo-go/pkg/rpcclient" + "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" +) + +func TestRPCInvokerRPCClientCompat(t *testing.T) { + _ = invoker.RPCInvoke(&rpcclient.Client{}) + _ = invoker.RPCInvoke(&rpcclient.WSClient{}) + _ = invoker.RPCInvokeHistoric(&rpcclient.Client{}) + _ = invoker.RPCInvokeHistoric(&rpcclient.WSClient{}) + _ = invoker.RPCSessions(&rpcclient.WSClient{}) +}