<commit_before>export var test = {
  name: "Then thenning",
  distribution: true,
  // Called before each test run
  initialize: function(Constructor, n) {

    return {
      n: n,
      promise: new Constructor(function(resolve) {
        resolve(1);
      })
    };
  },

  run: function(Constructor, testInstance, setup) {
    var promise = setup.promise;
    var n = setup.n;
    for (var i = 0; i < n; i ++) {
      promise = promise.then();
    }

    promise.then(function(){ testInstance.end(); });
  },
  options: {
    defer: true
  }
};
<commit_msg>ensure thenning runs<commit_after>export var test = {
  name: "Then thenning",
  distribution: true,
  needs: 'Constructor',
  // Called before each test run
  initialize: function(Constructor, n) {

    return {
      n: n,
      promise: new Constructor(function(resolve) {
        resolve(1);
      })
    };
  },

  run: function(Constructor, testInstance, setup) {
    var promise = setup.promise;
    var n = setup.n;
    for (var i = 0; i < n; i ++) {
      promise = promise.then();
    }

    promise.then(function(){ testInstance.end(); });
  },
  options: {
    defer: true
  }
};

{'fraction_non_alphanumeric': 0.14570685169124023, 'fraction_numerical': 0.003469210754553339, 'mean_word_length': 2.486404833836858, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2104845', 'n_tokens_mistral': 381, 'n_tokens_neox': 374, 'n_words': 98}