forked from TrueCloudLab/rclone
Fix nil pointer exception on test failure
This commit is contained in:
parent
2fcb8f5db7
commit
be6115fbfa
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue