ninth version
Deploy / Test, build and deploy (push) Failing after 1m6s

This commit is contained in:
2026-06-08 14:25:44 +00:00
parent e8b7d8e27c
commit 20cc8506ad
21 changed files with 847 additions and 148 deletions
+14
View File
@@ -142,6 +142,20 @@ func TestReconciliationQuarantinesOnNonZeroBrokerCommission(t *testing.T) {
}
}
func TestCompareOperationsFlagsNonZeroCommissionWithoutInstrument(t *testing.T) {
diffs := compareOperationsWithPolicy(nil, []domain.Operation{{
Type: "OPERATION_TYPE_BROKER_FEE",
Commission: decimal.NewFromFloat(0.01),
ExecutedAt: time.Now().UTC(),
}}, true, decimal.Zero)
for _, diff := range diffs {
if diff.Kind == "actual_commission_nonzero" && diff.Critical {
return
}
}
t.Fatalf("expected critical nonzero commission diff, got %+v", diffs)
}
func TestReconciliationSkipsFreshInFlightLocalOrders(t *testing.T) {
ctx := context.Background()
repo := testutil.NewMemoryRepository()