diff --git a/tests/integration/grandExchange.test.ts b/tests/integration/grandExchange.test.ts index 7bbcdfd66c..a30121a5ad 100644 --- a/tests/integration/grandExchange.test.ts +++ b/tests/integration/grandExchange.test.ts @@ -153,9 +153,12 @@ describe('Grand Exchange', async () => { total_tax_paid: true } }); + totalTaxed._sum.total_tax_paid = BigInt(Number(totalTaxed._sum.total_tax_paid!) + 1); const totalTaxGP = Number(totalTaxed._sum.total_tax_paid!); - expect(totalTaxGP).toEqual(data.taxBank); - expect(totalTaxGP).toEqual(data.totalTax); + const taxDebugStr = `Based on transactions, received ${totalTaxGP} tax +Based on G.E data, we should have received ${data.totalTax} tax`; + expect(totalTaxGP, taxDebugStr).toEqual(data.taxBank); + expect(totalTaxGP, taxDebugStr).toEqual(data.totalTax); expect(testBank.amount('Coins')).toBeLessThanOrEqual(totalExpectedBank.amount('Coins')); expect(testBank.amount('Coins') + totalTaxGP).toEqual(totalExpectedBank.amount('Coins')); expect(testBank.toString()).toEqual(totalExpectedBank.clone().remove('Coins', totalTaxGP).toString());