
RUN existing/correct: /opt/homebrew/opt/python@3.11/bin/python3.11 -B -m unittest -v test_receipts
PROVENANCE: test accept is endpoint.handle_upload; endpoint _record is ledger.write_event; commit=True
ENDPOINT: <WORKSPACE>/.commit-audit-5eswnuc8/correct/ingest/endpoint.py
WRITER: <WORKSPACE>/.commit-audit-5eswnuc8/correct/ingest/ledger.py
test_acknowledges_binary_upload (test_receipts.ReceiptTests.test_acknowledges_binary_upload) ... ok
test_acknowledges_empty_upload (test_receipts.ReceiptTests.test_acknowledges_empty_upload) ... ok

----------------------------------------------------------------------
Ran 2 tests in 0.005s

OK
EXIT: 0

RUN existing/faulty: /opt/homebrew/opt/python@3.11/bin/python3.11 -B -m unittest -v test_receipts
PROVENANCE: test accept is endpoint.handle_upload; endpoint _record is ledger.write_event; commit=False
ENDPOINT: <WORKSPACE>/.commit-audit-5eswnuc8/faulty/ingest/endpoint.py
WRITER: <WORKSPACE>/.commit-audit-5eswnuc8/faulty/ingest/ledger.py
test_acknowledges_binary_upload (test_receipts.ReceiptTests.test_acknowledges_binary_upload) ... ok
test_acknowledges_empty_upload (test_receipts.ReceiptTests.test_acknowledges_empty_upload) ... ok

----------------------------------------------------------------------
Ran 2 tests in 0.005s

OK
EXIT: 0

RUN stronger/correct: /opt/homebrew/opt/python@3.11/bin/python3.11 -B -m unittest -v test_receipts
PROVENANCE: test accept is endpoint.handle_upload; endpoint _record is ledger.write_event; commit=True
ENDPOINT: <WORKSPACE>/.commit-audit-5eswnuc8/correct/ingest/endpoint.py
WRITER: <WORKSPACE>/.commit-audit-5eswnuc8/correct/ingest/ledger.py
test_acknowledges_binary_upload (test_receipts.ReceiptTests.test_acknowledges_binary_upload) ... POST-UPLOAD fresh-connection rows: [(10, b'previous'), (20, b'\x00\xffnew')]
ok
test_acknowledges_empty_upload (test_receipts.ReceiptTests.test_acknowledges_empty_upload) ... ok

----------------------------------------------------------------------
Ran 2 tests in 0.005s

OK
EXIT: 0

RUN stronger/faulty: /opt/homebrew/opt/python@3.11/bin/python3.11 -B -m unittest -v test_receipts
PROVENANCE: test accept is endpoint.handle_upload; endpoint _record is ledger.write_event; commit=False
ENDPOINT: <WORKSPACE>/.commit-audit-5eswnuc8/faulty/ingest/endpoint.py
WRITER: <WORKSPACE>/.commit-audit-5eswnuc8/faulty/ingest/ledger.py
test_acknowledges_binary_upload (test_receipts.ReceiptTests.test_acknowledges_binary_upload) ... POST-UPLOAD fresh-connection rows: [(10, b'previous')]
FAIL
test_acknowledges_empty_upload (test_receipts.ReceiptTests.test_acknowledges_empty_upload) ... ok

======================================================================
FAIL: test_acknowledges_binary_upload (test_receipts.ReceiptTests.test_acknowledges_binary_upload)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "<WORKSPACE>/.commit-audit-5eswnuc8/faulty/test_receipts.py", line 32, in test_acknowledges_binary_upload
    self.assertEqual(rows, [(10, b'previous'), (20, b'\x00\xffnew')])
AssertionError: Lists differ: [(10, b'previous')] != [(10, b'previous'), (20, b'\x00\xffnew')]

Second list contains 1 additional elements.
First extra element 1:
(20, b'\x00\xffnew')

- [(10, b'previous')]
+ [(10, b'previous'), (20, b'\x00\xffnew')]

----------------------------------------------------------------------
Ran 2 tests in 0.005s

FAILED (failures=1)
EXIT: 1

CLEANUP: owned disposable copies removed
ORIGINALS: SHA-256 contents and modes unchanged
