mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-16 16:54:06 +00:00
df78d21dfd
Also removes the private API from RPC. C-Bindings are not affected, but future revisions might remove the asymmetric/symmetric functions for lightpush and relay and replace them instead by separate encoding functions
20 lines
449 B
Go
20 lines
449 B
Go
package rest
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
"github.com/waku-org/go-waku/waku/v2/node"
|
|
"github.com/waku-org/go-waku/waku/v2/utils"
|
|
)
|
|
|
|
func TestWakuRest(t *testing.T) {
|
|
options := node.WithWakuStore()
|
|
n, err := node.New(options)
|
|
require.NoError(t, err)
|
|
|
|
rpc := NewWakuRest(n, "127.0.0.1", 8080, true, false, 10, utils.Logger())
|
|
require.NotNil(t, rpc.server)
|
|
require.Equal(t, rpc.server.Addr, "127.0.0.1:8080")
|
|
}
|