mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
Use temp directory for downloads
This commit is contained in:
parent
1819b4896b
commit
13c94f4fa0
1 changed files with 2 additions and 1 deletions
|
|
@ -101,7 +101,8 @@ func TestShaMarking(t *testing.T) {
|
||||||
hClient := server.Client()
|
hClient := server.Client()
|
||||||
client := util.Client(hClient)
|
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()
|
cfg.prepare()
|
||||||
d, err := newDownloader(&cfg)
|
d, err := newDownloader(&cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue