TF-2310 Use singleton for HiveCacheConfig to avoid creating multiple instance
This commit is contained in:
@@ -14,7 +14,7 @@ void main() {
|
||||
late EmailCacheClient emailCacheClient;
|
||||
|
||||
setUpAll(() {
|
||||
HiveCacheConfig().setUp(cachePath: Directory.current.path);
|
||||
HiveCacheConfig.instance.setUp(cachePath: Directory.current.path);
|
||||
});
|
||||
|
||||
setUp(() {
|
||||
|
||||
@@ -14,7 +14,7 @@ void main() {
|
||||
late MailboxCacheClient mailboxCacheClient;
|
||||
|
||||
setUpAll(() {
|
||||
HiveCacheConfig().setUp(cachePath: Directory.current.path);
|
||||
HiveCacheConfig.instance.setUp(cachePath: Directory.current.path);
|
||||
});
|
||||
|
||||
setUp(() {
|
||||
|
||||
@@ -18,7 +18,7 @@ void main() {
|
||||
late MailboxStateWorkerQueue workerQueue;
|
||||
|
||||
setUpAll(() {
|
||||
HiveCacheConfig().setUp(cachePath: Directory.current.path);
|
||||
HiveCacheConfig.instance.setUp(cachePath: Directory.current.path);
|
||||
});
|
||||
|
||||
setUp(() {
|
||||
|
||||
Reference in New Issue
Block a user