mirror of
https://github.com/logos-messaging/logos-messaging-test-query.git
synced 2026-01-02 14:03:10 +00:00
41 lines
660 B
Go
41 lines
660 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
"github.com/waku-org/go-waku/waku/v2/node"
|
|
"github.com/waku-org/go-waku/waku/v2/utils"
|
|
)
|
|
|
|
var log = utils.Logger().Named("TEST")
|
|
|
|
func TestStoreSuite(t *testing.T) {
|
|
suite.Run(t, new(StoreSuite))
|
|
}
|
|
|
|
type StoreSuite struct {
|
|
suite.Suite
|
|
node *node.WakuNode
|
|
}
|
|
|
|
func (s *StoreSuite) SetupSuite() {
|
|
wakuNode, err := node.New(
|
|
node.WithNTP(),
|
|
node.WithWakuRelayAndMinPeers(1),
|
|
node.WithClusterID(16),
|
|
)
|
|
|
|
s.NoError(err)
|
|
|
|
err = wakuNode.Start(context.Background())
|
|
s.NoError(err)
|
|
|
|
s.node = wakuNode
|
|
}
|
|
|
|
func (s *StoreSuite) TearDownSuite() {
|
|
s.node.Stop()
|
|
}
|