mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-14 07:44:31 +00:00
2616d43c9d
* update relay REST API's to remove duplicate message cache, fix relay tests and admin test * chore: enable REST and RPC unit tests * update lightpush rest api to match yaml * fix: filter rest unit test failures * skipping legacy filter tests * chore: add unit tests for autosharding relay REST API, fix success response (#868)
20 lines
523 B
Go
20 lines
523 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, RestConfig{Address: "127.0.0.1", Port: 8080, EnablePProf: false, EnableAdmin: false, RelayCacheCapacity: 10}, utils.Logger())
|
|
require.NotNil(t, rpc.server)
|
|
require.Equal(t, rpc.server.Addr, "127.0.0.1:8080")
|
|
}
|