Skip to content

Commit

Permalink
fix: eliminate busy loop in persistenceThread (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone authored Jan 25, 2024
1 parent 1d879a4 commit 8687425
Show file tree
Hide file tree
Showing 6 changed files with 303 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"[typescript]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
}
},
"editor.rulers": [
Expand Down
5 changes: 2 additions & 3 deletions src/lib/db.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ describe("lib/db", () => {
});

it("..., but only above the minimum size", async () => {
await retry(5, async () => {
await retry(1, async () => {
db = new JsonlDB(testFilenameFull, {
autoCompress: {
sizeFactor: 4,
Expand Down Expand Up @@ -1752,7 +1752,6 @@ describe("lib/db", () => {
await testFS.create({
[testFilename]: ``,
});
console.log(testFilenameFull);

db = new JsonlDB(testFilenameFull, {
enableTimestamps: true,
Expand All @@ -1776,7 +1775,7 @@ describe("lib/db", () => {
`,
);
});
}, 120000);
});

it("should be parsed from the db file", async () => {
await retry(3, async () => {
Expand Down
Loading

0 comments on commit 8687425

Please sign in to comment.