Skip to content

Commit 4663146

Browse files
authored
test: make sure graphdb client test data dir is writeable (#224)
1 parent d89dbb8 commit 4663146

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/aali_graphdb/client_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ func getTestClient(t *testing.T) *Client {
7676
Consumers: []testcontainers.LogConsumer{&StdoutLogConsumer{}},
7777
},
7878
Env: env,
79+
Files: []testcontainers.ContainerFile{
80+
{
81+
HostFilePath: t.TempDir(),
82+
ContainerFilePath: "/data",
83+
FileMode: 0o700,
84+
},
85+
},
7986
}
8087
aaliDbCont, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
8188
ContainerRequest: req, Started: true,

0 commit comments

Comments
 (0)