mirror of https://github.com/rclone/rclone.git
Fix nil pointer exception on test failure
This commit is contained in:
parent
2fcb8f5db7
commit
be6115fbfa
|
@ -279,7 +279,7 @@ func TestFsCopy(t *testing.T) {
|
||||||
src := findObject(t, file1.Path)
|
src := findObject(t, file1.Path)
|
||||||
dst, err := remote.(fs.Copier).Copy(src, file1Copy.Path)
|
dst, err := remote.(fs.Copier).Copy(src, file1Copy.Path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("Copy failed: %v", err)
|
t.Fatalf("Copy failed: %v (%#v)", err, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// check file exists in new listing
|
// check file exists in new listing
|
||||||
|
|
Loading…
Reference in New Issue