import assert from 'node:assert/strict';
import test from 'node:test';
import { retryBackoffMs } from '../src/queue';

test('task retry backoff grows but caps at one hour', () => {
  assert.equal(retryBackoffMs(1), 60_000);
  assert.equal(retryBackoffMs(2), 120_000);
  assert.equal(retryBackoffMs(20), 3_600_000);
});
