We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ad5938 commit 186e2abCopy full SHA for 186e2ab
test/client/connection.js
@@ -101,6 +101,18 @@ describe('client connection', function() {
101
});
102
103
104
+ it('updates after connection socket stream emits "close"', function(done) {
105
+ var backend = this.backend;
106
+ var connection = backend.connect();
107
+ connection.on('connected', function() {
108
+ connection.socket.stream.emit('close')
109
+ setTimeout(function() {
110
+ expect(backend.agentsCount).equal(0);
111
+ done();
112
+ }, 10);
113
+ });
114
115
+
116
it('does not increment when agent connect is rejected', function() {
117
var backend = this.backend;
118
backend.use('connect', function(request, next) {
0 commit comments