<commit_before>var nock = require('nock');

exports.execute = function (options) {

    describe('For determining http behavior on errocode 500, ', function () {
        var server, ermRest;

	    var enableNet = function() {
	        nock.cleanAll();
	        nock.enableNetConnect();
	    };

        beforeAll(function () {
            server = options.server;
            ermRest = options.ermRest;
        });

        it("should make 1 http retry", function(done) {
	        
	        var id = "jhgjhgjhg",  ops = {allowUnmocked: true};;
	        nock(options.url.replace('ermrest', ''), ops)
	          .get("/ermrest/catalog/" + id + "/schema")
	          .reply(500, 'Error message');

	        var startTime = (new Date()).getTime();

	        server.catalogs.get(id).then(null, function(err) {<commit_msg>Fixed failing HTTP retry test<commit_after>var nock = require('nock');

exports.execute = function (options) {

    describe('For determining http behavior on errocode 500, ', function () {
        var server, ermRest;

	    var enableNet = function() {
	        nock.cleanAll();
	        nock.enableNetConnect();
	    };

        beforeAll(function () {
            server = options.server;
            ermRest = options.ermRest;
        });

        it("should make 1 http retry", function(done) {
	        
	        var id = "jhgjhgjhg",  ops = {allowUnmocked: true};;
	        nock(options.url.replace('ermrest', ''), ops)
	          .get("/ermrest/catalog/" + id + "/schema?cid=null")
	          .reply(500, 'Error message');

	        var startTime = (new Date()).getTime();

	        server.catalogs.get(id).then(null, function(err) {
{'fraction_non_alphanumeric': 0.14484007242003621, 'fraction_numerical': 0.008449004224502113, 'mean_word_length': 2.2194174757281555, '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': '3389327', 'n_tokens_mistral': 527, 'n_tokens_neox': 475, 'n_words': 110}