19 lines
352 B
Go
19 lines
352 B
Go
|
package qbittorrent
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/require"
|
||
|
)
|
||
|
|
||
|
func TestDownloadQBittorent(t *testing.T) {
|
||
|
ctx := context.Background()
|
||
|
tempDir := t.TempDir()
|
||
|
require := require.New(t)
|
||
|
err := downloadLatestRelease(ctx, tempDir)
|
||
|
require.NoError(err)
|
||
|
err = downloadLatestRelease(ctx, tempDir)
|
||
|
require.NoError(err)
|
||
|
}
|