github.com/status-im/status-go@v1.1.0/protocol/encryption/publisher/publisher_test.go (about)

     1  package publisher
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/suite"
     7  	"go.uber.org/zap"
     8  
     9  	"github.com/status-im/status-go/protocol/tt"
    10  )
    11  
    12  func TestServiceTestSuite(t *testing.T) {
    13  	suite.Run(t, new(PublisherTestSuite))
    14  }
    15  
    16  type PublisherTestSuite struct {
    17  	suite.Suite
    18  	publisher *Publisher
    19  	logger    *zap.Logger
    20  }
    21  
    22  func (p *PublisherTestSuite) SetupTest(installationID string) {
    23  	p.logger = tt.MustCreateTestLogger()
    24  	p.publisher = New(p.logger)
    25  }
    26  
    27  func (p *PublisherTestSuite) TearDownTest() {
    28  	_ = p.logger.Sync()
    29  }
    30  
    31  // TODO(adam): provide more tests