Skip to content

Commit

Permalink
Use the pid 0 to test a runfile of stale process
Browse files Browse the repository at this point in the history
Instead of 2, which is a like existing pid, especially in a
containerized go test run.
  • Loading branch information
cvaroqui committed Sep 6, 2024
1 parent 59e6690 commit 91e8c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/runfiles/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestRunFiles(t *testing.T) {

t.Run("CreateStale", func(t *testing.T) {
content := "foo"
err := d.create(2, []byte(content))
err := d.create(0, []byte(content))
assert.NoError(t, err)
})

Expand Down

0 comments on commit 91e8c6b

Please sign in to comment.