Skip to content

Commit 8269b71

Browse files
committed
chore: fix
1 parent b3ec057 commit 8269b71

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/cubejs-query-orchestrator/src/orchestrator/QueryCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export class QueryCache {
135135
protected readonly logger: any,
136136
public readonly options: QueryCacheOptions
137137
) {
138-
switch (options.cacheAndQueueDriver) {
138+
switch (options.cacheAndQueueDriver || 'memory') {
139139
case 'memory':
140140
this.cacheDriver = new LocalCacheDriver();
141141
break;

packages/cubejs-query-orchestrator/test/unit/PreAggregations.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,15 @@ describe('PreAggregations', () => {
166166
};
167167

168168
jest.resetModules();
169+
169170
const { QueryCache } = require('../../src/orchestrator/QueryCache');
170171
queryCache = new QueryCache(
171172
'TEST',
172173
mockDriverFactory,
173174
// eslint-disable-next-line @typescript-eslint/no-empty-function
174175
() => {},
175176
{
177+
cacheAndQueueDriver: 'memory',
176178
queueOptions: () => ({
177179
executionTimeout: 1,
178180
concurrency: 2,

packages/cubejs-query-orchestrator/test/unit/QueryQueue.abstract.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Readable } from 'stream';
2-
import { CubeStoreDriver } from '@cubejs-backend/cubestore-driver';
32
import type { QueryKey, QueueDriverInterface } from '@cubejs-backend/base-driver';
43
import { pausePromise } from '@cubejs-backend/shared';
54
import crypto from 'crypto';

0 commit comments

Comments
 (0)