1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Use temp directory for downloads

This commit is contained in:
koplas 2024-09-16 20:46:31 +02:00
parent 1819b4896b
commit 13c94f4fa0

View file

@ -101,7 +101,8 @@ func TestShaMarking(t *testing.T) {
hClient := server.Client()
client := util.Client(hClient)
cfg := config{LogLevel: &options.LogLevel{Level: slog.LevelDebug}}
tempDir := t.TempDir()
cfg := config{LogLevel: &options.LogLevel{Level: slog.LevelDebug}, Directory: tempDir}
cfg.prepare()
d, err := newDownloader(&cfg)
if err != nil {