Skip to content

Commit

Permalink
Test passing
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenGround0 committed May 13, 2024
1 parent b6f0a3d commit 535b45d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions itests/supply_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,15 @@ func TestCirciulationSupplyUpgrade(t *testing.T) {
require.NoError(t, err, "Failed to fetch nv23 circulating supply")

// Unfortunately there's still some non-determinism in supply dynamics so check for equality within a tolerance
tolerance := big.Mul(abi.NewTokenAmount(100), abi.NewTokenAmount(1e18))
tolerance := big.Mul(abi.NewTokenAmount(200), abi.NewTokenAmount(1e18))
totalLocked := big.Sum(lockedClientBalance, lockedProviderBalance)
diff := big.Sub(
big.Sum(totalLocked, nv22Supply.FilCirculating),
nv23Supply.FilCirculating,
big.Sum(totalLocked, nv23Supply.FilLocked),
nv22Supply.FilLocked,
)
assert.Equal(t, -1, big.Cmp(
diff.Abs(),
tolerance), "Supply difference exceeds tolerance")
tolerance), "Difference from expected locked supply between versions exceeds tolerance")
}

// Message will be valid and lock funds but the data is fake so the deal will never be activated
Expand Down

0 comments on commit 535b45d

Please sign in to comment.