TAP version 13
# Subtest: a later retry returns the first charge
ok 1 - a later retry returns the first charge
  ---
  duration_ms: 0.310417
  type: 'test'
  ...
# Subtest: an invalid amount never reaches the gateway
ok 2 - an invalid amount never reaches the gateway
  ---
  duration_ms: 0.152208
  type: 'test'
  ...
# Subtest: concurrent retries share one in-flight charge
not ok 3 - concurrent retries share one in-flight charge
  ---
  duration_ms: 0.287959
  type: 'test'
  location: 'payments-api-proof/test/payments.test.mjs:21:1'
  failureType: 'testCodeFailure'
  error: |-
    Expected values to be strictly equal:
    
    2 !== 1
    
  code: 'ERR_ASSERTION'
  name: 'AssertionError'
  expected: 1
  actual: 2
  operator: 'strictEqual'
  stack: |-
    TestContext.<anonymous> (file://payments-api-proof/test/payments.test.mjs:28:10)
    Test.runInAsyncScope (node:async_hooks:214:14)
    Test.run (node:internal/test_runner/test:1047:25)
    Test.processPendingSubtests (node:internal/test_runner/test:744:18)
    Test.postRun (node:internal/test_runner/test:1173:19)
    Test.run (node:internal/test_runner/test:1101:12)
    async Test.processPendingSubtests (node:internal/test_runner/test:744:7)
  ...
# Subtest: a failed charge can be retried
ok 4 - a failed charge can be retried
  ---
  duration_ms: 0.321542
  type: 'test'
  ...
1..4
# tests 4
# suites 0
# pass 3
# fail 1
# cancelled 0
# skipped 0
# todo 0
# duration_ms 33.151
