Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

fix intermittent failures in incentives simulation tests #1899

@mortelli

Description

@mortelli

there is an occasional, hard-to-reproduce bug occurring in swap/simulations_tests.go.

it looks like this:

--- FAIL: TestPingPongChequeSimulation (1.94s)
    simulations_test.go:327: expected cumulative payout to be 412298906469954, but is 431932187730428

it's currently unknown whether this is a proper bug, or something wrong with the sim tests themselves. things are pointing towards the former.

tests known to be affected by this bug:

  • TestPingPongChequeSimulation
  • TestMultiChequeSimulation

high count values when running swap tests can sometimes trigger the bug, e.g.:

go test ./swap -count=30

hence the bug is suspected to have something to do with concurrency/synchronization.

the incentives-simulations-bug branch is available for repeating CI tests under PR #1893.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions