Skip to content

Commit a39c141

Browse files
author
Alec Gibson
committed
Simplify reconnection test case
1 parent 0f3d526 commit a39c141

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/client/snapshot-request.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
var Backend = require('../../lib/backend');
22
var expect = require('expect.js');
3-
var StreamSocket = require('../../lib/stream-socket');
4-
var Connection = require('../../lib/client/connection');
53

64
describe('SnapshotRequest', function () {
75
var backend;
@@ -210,8 +208,7 @@ describe('SnapshotRequest', function () {
210208
});
211209

212210
it('can drop its connection and reconnect, and the callback is just called once', function (done) {
213-
var socket = new StreamSocket();
214-
var connection = backend.connect(new Connection(socket));
211+
var connection = backend.connect();
215212

216213
connection.fetchSnapshot('books', 'don-quixote', function (error) {
217214
if (error) return done(error);

0 commit comments

Comments
 (0)