Fix test assertion

Change-Id: I40e5a6a7a068391ebf257e8963d1524ddb965654
This commit is contained in:
Alistair Coles 2023-02-09 14:24:29 +00:00
parent 231a67e1e9
commit f92c4d4e58

View File

@ -1591,7 +1591,7 @@ class TestDatabaseBroker(TestDbBase):
fd.write(b'x' * 100000)
with patch.object(broker, '_commit_puts') as mock_commit_puts:
broker.put_record('direct')
mock_commit_puts.called_once_with(['direct'])
mock_commit_puts.assert_called_once_with(['direct'])
# records shouldn't be put to brokers with skip_commits True because
# they cannot be accepted if the pending file is full