Skip to content

Commit

Permalink
Use deep equality check in interop test
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Apr 11, 2024
1 parent 7fad9a6 commit 74afc65
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packages/beacon-node/test/sim/electra-interop.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import fs from "node:fs";
import assert from "node:assert";
import {describe, it, vi, afterAll, afterEach} from "vitest";

import {LogLevel, sleep} from "@lodestar/utils";
Expand Down Expand Up @@ -224,13 +225,13 @@ describe("executionEngine / ExecutionEngineHttp", function () {
}

const actualDepositReceipt = payload.depositReceipts[0];
if (actualDepositReceipt !== depositReceiptB) {
throw Error(
`Deposit receipts mismatched. Expected: ${JSON.stringify(depositReceiptB)}, actual: ${JSON.stringify(
actualDepositReceipt
)}`
);
}
assert.deepStrictEqual(
actualDepositReceipt,
depositReceiptB,
`Deposit receipts mismatched. Expected: ${JSON.stringify(depositReceiptB)}, actual: ${JSON.stringify(
actualDepositReceipt
)}`
);
});

it("Post-merge, run for a few blocks", async function () {
Expand Down

0 comments on commit 74afc65

Please sign in to comment.