blob: c6c2341626a56d5a8f5e3303f69b84b9d04693db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package service
import (
"path"
"testing"
"git.server.ky/slackcoder/mirror/internal"
"github.com/stretchr/testify/require"
)
func TestRsync(t *testing.T) {
d := t.TempDir()
dst := internal.MustURL(d)
src := internal.MustURL("rsync://mirror.cedia.org.ec/gnu/taler")
err := Rsync(dst, src)
require.NoError(t, err, "rsync")
require.FileExists(t, path.Join(dst.Path, "taler-merchant-0.11.3.tar.gz"))
}
|