Skip to content

Commit

Permalink
Fix Integration Test Cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Mahad Zaryab <[email protected]>
  • Loading branch information
mahadzaryab1 committed Jan 18, 2025
1 parent 5a06df6 commit 6936344
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugin/storage/integration/cassandra_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func newCassandraStorageIntegration() *CassandraStorageIntegration {

func (s *CassandraStorageIntegration) cleanUp(t *testing.T) {
require.NoError(t, s.factory.Purge(context.Background()))
require.NoError(t, s.archiveFactory.Purge(context.Background()))
}

func (*CassandraStorageIntegration) initializeCassandraFactory(t *testing.T, flags []string, factoryInit func() *cassandra.Factory) *cassandra.Factory {
Expand Down
1 change: 1 addition & 0 deletions plugin/storage/integration/elasticsearch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func (s *ESStorageIntegration) initializeES(t *testing.T, c *http.Client, allTag

func (s *ESStorageIntegration) esCleanUp(t *testing.T) {
require.NoError(t, s.factory.Purge(context.Background()))
require.NoError(t, s.archiveFactory.Purge(context.Background()))
}

func (*ESStorageIntegration) initializeESFactory(t *testing.T, args []string, factoryInit func() *es.Factory) *es.Factory {
Expand Down
1 change: 1 addition & 0 deletions plugin/storage/integration/grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func (s *GRPCStorageIntegrationTestSuite) initialize(t *testing.T) {

func (s *GRPCStorageIntegrationTestSuite) close(t *testing.T) {
require.NoError(t, s.factory.Close())
require.NoError(t, s.archiveFactory.Close())
s.remoteStorage.Close(t)
}

Expand Down

0 comments on commit 6936344

Please sign in to comment.