Skip to content

Commit

Permalink
fix(test): fixing cache provide test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kdhttps authored and yurem committed Nov 24, 2023
1 parent 534f560 commit 29216ba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/cache-provider.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ describe('cache provider test', () => {
const testProvider = testConfig.passportConfigAuthorizedResponse.providers.find(provider => provider.id === 'saml-redis-test')
testProvider.options.retry_strategy = retryStrategy

it('redis is not live so we should get connection error response.', () => {
it('redis is not live so we should get connection error response', () => {
const client = redis.createClient(testProvider.options)

client.on('ready', () => {
assert.fail('redis connection should not work')
})
client.on('error', actualError => {
console.log('testing redis test...')
const expectedError = new Error('Ready check failed: NOAUTH Authentication required.')
const expectedError = new Error('Redis connection in broken state: retry aborted.')
assert.equal(actualError.message, expectedError.message)
})
})
Expand Down

0 comments on commit 29216ba

Please sign in to comment.