-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test] Fix TestDeleteStoreDeletesRealtimeTopic for correctness (#701)
This commit addresses a potential issue with resource management in `TestDeleteStoreDeletesRealtimeTopic`. The previous code prematurely closed the `TopicManagerRepository` within a try-with-resources block, causing early closure of internal topic managers and its associated PubSub clients. To resolve this, we close the `TopicManagerRepository` only when its local topic manager is no longer required. This change ensures proper resource management.
- Loading branch information
1 parent
270349c
commit 70edf83
Showing
1 changed file
with
10 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters