Skip to content

Commit

Permalink
Fixes mispelled env variable
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantina Blazhukova <[email protected]>
  • Loading branch information
konstantinabl committed Apr 19, 2024
1 parent 336acdc commit a538c37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class CacheService {

this.internalCache = new LocalLRUCache(logger.child({ name: 'localLRUCache' }), register);
this.sharedCache = this.internalCache;
this.isSharedCacheEnabled = process.env.TRUE === 'true' ? false : this.isRedisEnabled();
this.isSharedCacheEnabled = process.env.TEST === 'true' ? false : this.isRedisEnabled();
this.shouldMultiSet = process.env.MULTI_SET && process.env.MULTI_SET === 'true' ? true : false;

if (this.isSharedCacheEnabled) {
Expand Down
1 change: 1 addition & 0 deletions packages/relay/tests/lib/ethGetBlockBy.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ describe('eth_getBlockBy', async function () {

this.beforeAll(async () => {
//done in order to be able to use cache
process.env.TEST = 'false';
process.env.REDIS_ENABLED = 'true';
process.env.MULTI_SET = 'true';
redisInMemoryServer = new RedisInMemoryServer(logger.child({ name: `in-memory redis server` }), 5031);
Expand Down

0 comments on commit a538c37

Please sign in to comment.