Skip to content

Commit

Permalink
Use temp directory for downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
koplas committed Sep 16, 2024
1 parent 1819b48 commit 13c94f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/csaf_downloader/downloader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 13c94f4

Please sign in to comment.