Skip to content

Commit 6e7ff4a

Browse files
committed
test: put spool path in a writable directory (#2)
This makes tests pass in the dagger container where mounted path is not writable. Signed-off-by: Szymon Soloch <[email protected]>
1 parent 7dfb36d commit 6e7ff4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pgbackrest/archiver/command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ var _ = Describe("pgbackrestWalArchiveOptions", func() {
6161
})
6262

6363
It("should generate correct arguments", func(ctx SpecContext) {
64-
archiver, err := New(ctx, nil, "spool", "pgdata", tempEmptyWalArchivePath)
64+
archiver, err := New(ctx, nil, "/tmp/pgbackrest-test-spool", "pgdata", tempEmptyWalArchivePath)
6565
Expect(err).ToNot(HaveOccurred())
6666

6767
extraOptions := []string{"--buffer-size=5MB", "--io-timeout=60"}

0 commit comments

Comments
 (0)