<commit_before>'use strict';

var net = require('net');
var tls = require('tls');
var Connector = require('../../../lib/connectors/connector').default;

describe('Connector', function () {
  describe('connect()', function () {
    it('first tries path', function (done) {
      stub(net, 'createConnection');
      var connector = new Connector({ port: 6379, path: '/tmp' });
      connector.connect(function () {
        net.createConnection.calledWith({ path: '/tmp' });
        net.createConnection.restore();
        done();
      });<commit_msg>fix filename on Linux<commit_after>'use strict';

var net = require('net');
var tls = require('tls');
var Connector = require('../../../lib/connectors/Connector').default;

describe('Connector', function () {
  describe('connect()', function () {
    it('first tries path', function (done) {
      stub(net, 'createConnection');
      var connector = new Connector({ port: 6379, path: '/tmp' });
      connector.connect(function () {
        net.createConnection.calledWith({ path: '/tmp' });
        net.createConnection.restore();
        done();
      });
{'fraction_non_alphanumeric': 0.18772563176895307, 'fraction_numerical': 0.007220216606498195, 'mean_word_length': 3.4007936507936507, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4208258', 'n_tokens_mistral': 316, 'n_tokens_neox': 308, 'n_words': 75}