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

32 lines
562 B
Go
Raw Normal View History

2019-07-16 10:43:07 +00:00
package publisher
import (
"testing"
"github.com/stretchr/testify/suite"
"go.uber.org/zap"
2019-07-30 18:36:42 +00:00
"github.com/status-im/status-protocol-go/tt"
2019-07-16 10:43:07 +00:00
)
func TestServiceTestSuite(t *testing.T) {
suite.Run(t, new(PublisherTestSuite))
}
type PublisherTestSuite struct {
suite.Suite
publisher *Publisher
logger *zap.Logger
2019-07-16 10:43:07 +00:00
}
func (p *PublisherTestSuite) SetupTest(installationID string) {
2019-07-30 18:36:42 +00:00
p.logger = tt.MustCreateTestLogger()
p.publisher = New(p.logger)
}
func (p *PublisherTestSuite) TearDownTest() {
2019-07-21 05:40:12 +00:00
_ = p.logger.Sync()
2019-07-16 10:43:07 +00:00
}
// TODO(adam): provide more tests