Skip to content

Commit

Permalink
Fix the broken performance test binary (#2619)
Browse files Browse the repository at this point in the history
Motivation:

The performance test binary was crashing ever since #2589 added the crash
on deinit flow. Crashes here are preventing us from using the performance
tester.

Modifications:

Correctly clean up the async writer.

Result:

The writer is cleaned up now.
  • Loading branch information
Lukasa authored Jan 3, 2024
1 parent 5c668eb commit 5290857
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ final class NIOAsyncWriterSingleWritesBenchmark: AsyncBenchmark, @unchecked Send
}

func setUp() async throws {}
func tearDown() {}
func tearDown() {
self.writer.finish()
}

func run() async throws -> Int {
for i in 0..<self.iterations {
Expand Down

0 comments on commit 5290857

Please sign in to comment.