18 lines
360 B
Go
18 lines
360 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 := downloadLatestQbitRelease(ctx, tempDir)
|
|
require.NoError(err)
|
|
err = downloadLatestQbitRelease(ctx, tempDir)
|
|
require.NoError(err)
|
|
}
|