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 committed Nov 22, 2023
1 parent ae428ac commit eef75fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/cache-provider.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +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.')
assert.equal(actualError.message, expectedError.message)
})
Expand Down

0 comments on commit eef75fb

Please sign in to comment.