Fix --no-update-modtime test on remotes which don't support hashes
This commit is contained in:
parent
cbfec0d281
commit
64ec220d5d
1 changed files with 6 additions and 0 deletions
|
@ -317,6 +317,12 @@ func TestSyncAfterChangingModtimeOnly(t *testing.T) {
|
||||||
func TestSyncAfterChangingModtimeOnlyWithNoUpdateModTime(t *testing.T) {
|
func TestSyncAfterChangingModtimeOnlyWithNoUpdateModTime(t *testing.T) {
|
||||||
r := NewRun(t)
|
r := NewRun(t)
|
||||||
defer r.Finalise()
|
defer r.Finalise()
|
||||||
|
|
||||||
|
if r.fremote.Hashes().Count() == 0 {
|
||||||
|
t.Log("Can't check this if no hashes supported")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
fs.Config.NoUpdateModTime = true
|
fs.Config.NoUpdateModTime = true
|
||||||
defer func() {
|
defer func() {
|
||||||
fs.Config.NoUpdateModTime = false
|
fs.Config.NoUpdateModTime = false
|
||||||
|
|
Loading…
Add table
Reference in a new issue