Skip to content
This repository
Browse code

Support apparent change to sockets object

  • Loading branch information...
commit ee685b400d1ac5cb634cf6184b02743658e52923 1 parent a3cc911
Jason Smith jhs authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  test/follow.js
3  test/follow.js
@@ -52,7 +52,8 @@ test("Confirmation request behavior", function(t) {
52 52
53 53 // Confirm that the changes follower is not still in the pool.
54 54 var host = 'localhost:5984'
55   - follow_req.req.agent.sockets[host].forEach(function(socket, i) {
  55 + var sockets = follow_req.req.agent.sockets[host] || []
  56 + sockets.forEach(function(socket, i) {
56 57 t.isNot(socket, follow_req.req.connection, 'The changes follower is not socket '+i+' in the agent pool')
57 58 })
58 59

0 comments on commit ee685b4

Please sign in to comment.
Something went wrong with that request. Please try again.