2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 10:58:55 +00:00

lock_test: correct merge error, use offset 500k

This commit is contained in:
Alexander Neumann 2015-08-19 20:25:59 +02:00
parent 2df7ed6c9b
commit 5b21d67a49

View File

@ -134,7 +134,7 @@ var staleLockTests = []struct {
timestamp: time.Now(),
stale: true,
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())
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, restic.RemoveAllLocks(repo))