Skip to content

Commit

Permalink
fix: Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayprabhu committed Sep 16, 2024
1 parent 398b661 commit d06d182
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/hubble/src/storage/stores/storageCache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ describe("syncFromDb", () => {
for (let i = 0; i < fidUsage.usage.storage; i++) {
const storageRentEvent = Factories.StorageRentOnChainEvent.build({
fid: fidUsage.fid,
blockTimestamp: Date.now() / 1000,
storageRentEventBody: Factories.StorageRentEventBody.build({
expiry: getFarcasterTime()._unsafeUnwrap() + 365 * 24 * 60 * 60 - i,
units: 2,
}),
});
Expand All @@ -81,8 +81,8 @@ describe("syncFromDb", () => {
ok(fidUsage.usage.userData),
);
const slot = (await cache.getCurrentStorageSlotForFid(fidUsage.fid))._unsafeUnwrap();
expect(slot.legacy_units).toEqual(4);
expect(slot.units).toEqual(0);
expect(slot.units).toEqual(4);
expect(slot.legacy_units).toEqual(0);
}
});
});
Expand Down

0 comments on commit d06d182

Please sign in to comment.