mirror of https://github.com/status-im/go-waku.git
21 lines
495 B
Go
21 lines
495 B
Go
|
package rest
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"testing"
|
||
|
|
||
|
"github.com/status-im/go-waku/waku/v2/node"
|
||
|
"github.com/status-im/go-waku/waku/v2/utils"
|
||
|
"github.com/stretchr/testify/require"
|
||
|
)
|
||
|
|
||
|
func TestWakuRest(t *testing.T) {
|
||
|
options := node.WithWakuStore(false, false)
|
||
|
n, err := node.New(context.Background(), options)
|
||
|
require.NoError(t, err)
|
||
|
|
||
|
rpc := NewWakuRest(n, "127.0.0.1", 8080, true, true, 10, utils.Logger())
|
||
|
require.NotNil(t, rpc.server)
|
||
|
require.Equal(t, rpc.server.Addr, "127.0.0.1:8080")
|
||
|
}
|