2021-11-09 15:15:45 +01:00
|
|
|
package rpc
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/require"
|
2022-11-09 15:53:01 -04:00
|
|
|
"github.com/waku-org/go-waku/waku/v2/node"
|
|
|
|
"github.com/waku-org/go-waku/waku/v2/utils"
|
2021-11-09 15:15:45 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestWakuRpc(t *testing.T) {
|
2023-01-03 11:17:25 -04:00
|
|
|
options := node.WithWakuStore()
|
2023-01-06 18:37:57 -04:00
|
|
|
n, err := node.New(options)
|
2021-11-09 15:15:45 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2023-09-11 10:24:05 -04:00
|
|
|
rpc := NewWakuRPC(n, "127.0.0.1", 8080, true, false, 30, utils.Logger())
|
2021-11-09 15:15:45 +01:00
|
|
|
require.NotNil(t, rpc.server)
|
|
|
|
require.Equal(t, rpc.server.Addr, "127.0.0.1:8080")
|
|
|
|
}
|