<commit_before>const assert = require('assert');

const ObjectQueueEntry = require('../../../lib/models/ObjectQueueEntry');
const ActionQueueEntry = require('../../../lib/models/ActionQueueEntry');

const { getTaskSchedulerQueueKey, getTaskSchedulerDedupeKey } = require(
    '../../../extensions/replication/queueProcessor/taskSchedulerHelpers');

function makeObjectQueueEntry({ key, versionId, contentMd5 }) {
    return new ObjectQueueEntry('test-bucket-name', key)
        .setVersionId(versionId)
        .setContentMd5(contentMd5);
}

function makeActionQueueEntry({ key, versionId, contentMd5 }) {
    return new ActionQueueEntry({
        target: {
            key,
            version: versionId,
            contentMd5,<commit_msg>Fix failing test due to new replayCount field<commit_after>const assert = require('assert');

const ObjectQueueEntry = require('../../../lib/models/ObjectQueueEntry');
const ActionQueueEntry = require('../../../lib/models/ActionQueueEntry');
const { ObjectMD } = require('arsenal').models;

const { getTaskSchedulerQueueKey, getTaskSchedulerDedupeKey } = require(
    '../../../extensions/replication/queueProcessor/taskSchedulerHelpers');

function makeObjectQueueEntry({ key, versionId, contentMd5 }) {
    const objMd = new ObjectMD().setKey(key);
    return new ObjectQueueEntry('test-bucket-name', key, objMd)
        .setVersionId(versionId)
        .setContentMd5(contentMd5);
}

function makeActionQueueEntry({ key, versionId, contentMd5 }) {
    return new ActionQueueEntry({
        target: {
            key,
            version: versionId,
            contentMd5,
{'fraction_non_alphanumeric': 0.13543599257884972, 'fraction_numerical': 0.006184291898577613, 'mean_word_length': 3.596590909090909, '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': '6883514', 'n_tokens_mistral': 451, 'n_tokens_neox': 453, 'n_words': 90}