Skip to content

Commit

Permalink
Merge pull request #124542 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-24.1-124219

release-24.1: log: fix race in TestLogEntryPropagation
  • Loading branch information
dhartunian authored May 22, 2024
2 parents f7e67e4 + 1d5a349 commit 67de82c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/util/log/clog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,8 @@ func TestLogEntryPropagation(t *testing.T) {
t.Fatal(err)
}
defer func() { _ = f.Close() }()
defer func(prevStderr *os.File) { OrigStderr = prevStderr }(OrigStderr)
OrigStderr = f
require.NoError(t, hijackStderr(f))
defer func() { require.NoError(t, hijackStderr(OrigStderr)) }()

const specialMessage = `CAPTAIN KIRK`

Expand Down

0 comments on commit 67de82c

Please sign in to comment.