Skip to content

Commit

Permalink
change WS_ENABLED config default value (#3292)
Browse files Browse the repository at this point in the history
  • Loading branch information
karen-stepanyan committed May 17, 2024
1 parent 284a788 commit 1444fd4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/rare-candles-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/cryptocompare-adapter': minor
---

Change default value of WS_ENABLED config to true
2 changes: 1 addition & 1 deletion packages/sources/cryptocompare/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ export const config = new AdapterConfig({
WS_ENABLED: {
description: 'Whether data should be returned from websocket or not',
type: 'boolean',
default: false,
default: true,
},
})
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ describe('execute', () => {
beforeAll(async () => {
oldEnv = JSON.parse(JSON.stringify(process.env))
process.env['API_KEY'] = 'API_KEY'
process.env['WS_ENABLED'] = 'false'
const mockDate = new Date('2022-01-01T11:11:11.111Z')
spy = jest.spyOn(Date, 'now').mockReturnValue(mockDate.getTime())

Expand Down

0 comments on commit 1444fd4

Please sign in to comment.