mirror of
https://github.com/octoleo/restic.git
synced 2025-01-03 15:17:28 +00:00
lock_test: correct merge error, use offset 500k
This commit is contained in:
parent
2df7ed6c9b
commit
5b21d67a49
@ -134,7 +134,7 @@ var staleLockTests = []struct {
|
|||||||
timestamp: time.Now(),
|
timestamp: time.Now(),
|
||||||
stale: true,
|
stale: true,
|
||||||
staleOnOtherHost: false,
|
staleOnOtherHost: false,
|
||||||
pid: os.Getpid() + 500,
|
pid: os.Getpid() + 500000,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -204,7 +204,7 @@ func TestRemoveAllLocks(t *testing.T) {
|
|||||||
id2, err := createFakeLock(repo, time.Now().Add(-time.Minute), os.Getpid())
|
id2, err := createFakeLock(repo, time.Now().Add(-time.Minute), os.Getpid())
|
||||||
OK(t, err)
|
OK(t, err)
|
||||||
|
|
||||||
id3, err := createFakeLock(repo, time.Now().Add(-time.Minute), os.Getpid()+500)
|
id3, err := createFakeLock(repo, time.Now().Add(-time.Minute), os.Getpid()+500000)
|
||||||
OK(t, err)
|
OK(t, err)
|
||||||
|
|
||||||
OK(t, restic.RemoveAllLocks(repo))
|
OK(t, restic.RemoveAllLocks(repo))
|
||||||
|
Loading…
Reference in New Issue
Block a user