status-go/protocol/encryption/publisher/publisher_test.go

32 lines
562 B
Go
Raw Normal View History

package publisher
import (
"testing"
"github.com/stretchr/testify/suite"
"go.uber.org/zap"
"github.com/status-im/status-go/protocol/tt"
)
func TestServiceTestSuite(t *testing.T) {
suite.Run(t, new(PublisherTestSuite))
}
type PublisherTestSuite struct {
suite.Suite
publisher *Publisher
logger *zap.Logger
}
func (p *PublisherTestSuite) SetupTest(installationID string) {
p.logger = tt.MustCreateTestLogger()
p.publisher = New(p.logger)
}
func (p *PublisherTestSuite) TearDownTest() {
_ = p.logger.Sync()
}
// TODO(adam): provide more tests