diff --git a/lock_test.go b/lock_test.go index a2b5cb2d3..c07abb239 100644 --- a/lock_test.go +++ b/lock_test.go @@ -124,7 +124,7 @@ var staleLockTests = []struct { { timestamp: time.Now(), stale: true, - pid: os.Getpid() + 500, + pid: os.Getpid() + 500000, }, } @@ -158,7 +158,7 @@ func TestLockWithStaleLock(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.RemoveStaleLocks(repo))