Skip to content

Commit 9487856

Browse files
fix test
1 parent bec976b commit 9487856

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

services/resource-usage-tracker/src/simcore_service_resource_usage_tracker/services/process_message_running_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ async def _process_stop_event(
302302
)
303303
_transaction_status = (
304304
CreditTransactionStatus.BILLED
305-
if wallet_total_credits.available_osparc_credits - computed_credits > 0
305+
if wallet_total_credits.available_osparc_credits - computed_credits >= 0
306306
else CreditTransactionStatus.IN_DEBT
307307
)
308308
# Adjust the status if the platform status is not OK

services/resource-usage-tracker/tests/unit/with_dbs/test_process_rabbitmq_message_with_billing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ async def test_process_event_functions(
240240
postgres_db, msg.service_run_id, modified_at
241241
)
242242
assert output.osparc_credits < first_credits_used
243-
assert output.transaction_status == "BILLED"
243+
assert output.transaction_status == "IN_DEBT"
244244

245245
async for attempt in AsyncRetrying(
246246
wait=wait_fixed(0.1),

0 commit comments

Comments
 (0)