Skip to content

Commit

Permalink
Wait for second for timestamp to update.
Browse files Browse the repository at this point in the history
  • Loading branch information
lauravuo committed Mar 31, 2022
1 parent 761ff11 commit fd048e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/firebase/db.test.ts
Expand Up @@ -43,6 +43,7 @@ describe("db", () => {
it("fetches only changed events", async () => {
const tsBefore = fs.readFileSync(tsFilePath, "utf8");
const fileContentBefore = fs.readFileSync(`${dataFolderPath}/${eventsFile}`, "utf8");
await new Promise(r => setTimeout(r, 1000));

await fetchEventsToFile(tsFilePath, dataFolderPath);

Expand Down

0 comments on commit fd048e8

Please sign in to comment.