Skip to content

Commit

Permalink
Add missing dbConfig.setup in dbinitmanager tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrks committed Sep 25, 2024
1 parent 5b99aa0 commit dfba2b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rest/database_init_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (m *DatabaseInitManager) InitializeDatabase(ctx context.Context, startupCon

// Start a goroutine to perform the initialization
go func() {
defer n1qlStore.Close()
defer func() { _ = n1qlStore.Close() }()
defer couchbaseCluster.Close()
// worker.Run blocks until completion, and returns any error on doneChan.
worker.Run()
Expand Down
1 change: 1 addition & 0 deletions rest/database_init_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ func TestDatabaseInitTeardownTiming(t *testing.T) {
}
dbName := "dbName"
dbConfig := makeDbConfig(tb.GetName(), dbName, collection1and2ScopesConfig)
require.NoError(t, dbConfig.setup(ctx, dbName, sc.Config.Bootstrap, nil, nil, false))

wg := &sync.WaitGroup{}
wg.Add(1)
Expand Down

0 comments on commit dfba2b1

Please sign in to comment.