Skip to content

Commit

Permalink
Use unbuffered IO for stdout in NIOPerformanceTester (#2072)
Browse files Browse the repository at this point in the history
* Use unbuffered IO for stdout in NIOPerformanceTester

Signed-off-by: Si Beaumont <[email protected]>

* CRASH PERF TESTS: Up task count to 1M to test logging change

* Revert "CRASH PERF TESTS: Up task count to 1M to test logging change"

This reverts commit d8fa50e.

Co-authored-by: Cory Benfield <[email protected]>
  • Loading branch information
simonjbeaumont and Lukasa authored Apr 20, 2022
1 parent f32314f commit 684c093
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/NIOPerformanceTester/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ import NIOFoundationCompat
import Dispatch
import NIOWebSocket

// Use unbuffered stdout to help detect exactly which test was running in the event of a crash.
setbuf(stdout, nil)

// MARK: Test Harness

var warning: String = ""
Expand Down

0 comments on commit 684c093

Please sign in to comment.