Skip to content

Commit 587360a

Browse files
Cleanup
1 parent 508c86a commit 587360a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/firestore/src/local/lru_garbage_collector.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import {
3131
import { PersistencePromise } from './persistence_promise';
3232
import { TargetData } from './target_data';
3333
import { isIndexedDbTransactionError } from './simple_db';
34-
import { CACHE_SIZE_UNLIMITED } from '../api/database';
3534

3635
const LOG_TAG = 'LruGarbageCollector';
3736

packages/firestore/test/unit/util/async_queue.test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ import * as chaiAsPromised from 'chai-as-promised';
2020
import { expect, use } from 'chai';
2121
import { AsyncQueue, TimerId } from '../../../src/util/async_queue';
2222
import { Code } from '../../../src/util/error';
23-
import { getLogLevel, LogLevel, setLogLevel } from '../../../src/util/log';
23+
import {
24+
getLogLevel,
25+
LogLevel,
26+
LogLevelString,
27+
setLogLevel
28+
} from '../../../src/util/log';
2429
import { Deferred, Rejecter, Resolver } from '../../../src/util/promise';
2530
import { fail } from '../../../src/util/assert';
2631
import { IndexedDbTransactionError } from '../../../src/local/simple_db';
@@ -134,7 +139,7 @@ describe('AsyncQueue', () => {
134139
}).to.throw(/already failed:.*Simulated Error/);
135140

136141
// Finally, restore log level.
137-
setLogLevel('info');
142+
setLogLevel((oldLogLevel as unknown) as LogLevelString);
138143
});
139144
});
140145

0 commit comments

Comments
 (0)