Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-8302

Fix random failure in unit-postgres at BillingStrategyTest

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • System
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • No

      unexpected invocation: Finance::BillingStrategy(id: integer, account_id: integer, prepaid: boolean, charging_enabled: boolean, charging_retry_delay: integer, charging_retry_times: integer, created_at: datetime, updated_at: datetime, numbering_period: string, currency: string, tenant_id: integer, type: string).daily_async(#<Finance::BillingStrategy::ActiveRecord_Relation:0x183503a0>)
      unsatisfied expectations:
      - expected exactly once, not yet invoked: Finance::BillingStrategy(id: integer, account_id: integer, prepaid: boolean, charging_enabled: boolean, charging_retry_delay: integer, charging_retry_times: integer, created_at: datetime, updated_at: datetime, numbering_period: string, currency: string, tenant_id: integer, type: string).daily_async()
      satisfied expectations:
      - allowed any number of times, not yet invoked: PlanRulesCollection.plan_rules_by_name(any_parameters)
      - allowed any number of times, not yet invoked: PlanRulesCollection.plan_rules_by_name(any_parameters)
      - allowed any number of times, not yet invoked: #<ApplicationPlan:0x1797ba78>.plan_rule(any_parameters)
      - expected at least once, invoked twice: {:enabled => true, :active_merchant_logging => false, :billing_canaries => nil, :active_merchant_mode => :test}.billing_canaries(any_parameters)
      
      app/models/finance/billing_strategy.rb:39:in `daily_canaries'
      test/unit/finance/billing_strategy_test.rb:80:in `block in <class:BillingStrategyTest>'
      

              Unassigned Unassigned
              jgallaso Jose Miguel Gallas Olmedo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated: