Skip to content

Commit e146dd1

Browse files
committed
btrfs: enable and fix some disabled tests
1 parent 3e57982 commit e146dd1

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/packages/file-server/btrfs/subvolume-snapshots.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class SubvolumeSnapshots {
2727
return;
2828
}
2929
await this.subvolume.fs.mkdir(SNAPSHOTS);
30-
await this.subvolume.fs.chmod(SNAPSHOTS, "0550");
30+
await this.subvolume.fs.chmod(SNAPSHOTS, "0700");
3131
};
3232

3333
create = async (name?: string) => {

src/packages/file-server/btrfs/test/subvolume.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ describe("test snapshots", () => {
226226
});
227227
});
228228

229-
describe.only("test bup backups", () => {
229+
describe("test bup backups", () => {
230230
let vol: Subvolume;
231231
it("creates a volume", async () => {
232232
vol = await fs.subvolumes.get("bup-test");
@@ -273,7 +273,7 @@ describe.only("test bup backups", () => {
273273
{ name: "mydir", size: 0, mtime: x[1].mtime, isdir: true },
274274
]);
275275
expect(Math.abs((x[0].mtime ?? 0) * 1000 - Date.now())).toBeLessThan(
276-
60_000,
276+
5 * 60_000,
277277
);
278278
});
279279

src/packages/file-server/conat/test/local-path.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ describe("use the simple fileserver", () => {
7777
await fs.mkdir("xyz");
7878
const s = await fs.stat("xyz");
7979
expect(s.isDirectory()).toBe(true);
80+
expect(s.isFile()).toBe(false);
8081
});
8182

82-
it("creating a symlink works", async () => {
83+
it("creating a symlink works (and using lstat)", async () => {
8384
await fs.writeFile("source1", "the source");
8485
await fs.symlink("source1", "target1");
8586
expect(await fs.readFile("target1", "utf8")).toEqual("the source");

0 commit comments

Comments
 (0)