Skip to content

Commit

Permalink
chore: fix beacon proposer cache unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Jan 7, 2025
1 parent 690ee6a commit c9f2eeb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("BeaconProposerCache", () => {
});

it("get default", () => {
expect(cache.get(32)).toBe("0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
expect(cache.getOrDefault(32)).toBe("0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
});

it("get what has been set", () => {
Expand All @@ -29,7 +29,7 @@ describe("BeaconProposerCache", () => {
cache.prune(4);

// Default for what has been pruned
expect(cache.get(23)).toBe("0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
expect(cache.getOrDefault(23)).toBe("0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");

// Original for what hasn't been pruned
expect(cache.get(43)).toBe("0xcccccccccccccccccccccccccccccccccccccccc");
Expand Down

0 comments on commit c9f2eeb

Please sign in to comment.