Skip to content

Commit cc3dd41

Browse files
tbkkathomasvl
authored andcommitted
Skip re-encoding in the AsyncMessages fuzz tester
Re-encoding is a significant slowdown that is causing some tests to time out. Since this isn't yet giving us much value, just comment it out for now.
1 parent a146c4a commit cc3dd41

File tree

1 file changed

+8
-3
lines changed
  • FuzzTesting/Sources/FuzzAsyncMessageSequence

1 file changed

+8
-3
lines changed

FuzzTesting/Sources/FuzzAsyncMessageSequence/main.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,14 @@ public func FuzzAsyncMessageSequence(_ start: UnsafeRawPointer, _ count: Int) ->
2525
Task {
2626
do {
2727
for try await msg in decoding {
28-
// Test serialization for completeness.
29-
// There is no output sequence version, so generate the bytes.
30-
let _: [UInt8] = try! msg.serializedBytes()
28+
// TODO: Test serialization for completeness.
29+
// We could serialize individual messages like this:
30+
// let _: [UInt8] = try! msg.serializedBytes()
31+
// but we don't have a stream writer which is what
32+
// we really want to exercise here.
33+
34+
// Also, serialization here more than doubles the total
35+
// run time, leading to timeouts for the fuzz tester. :(
3136
}
3237
} catch {
3338
// Error parsing are to be expected since not all input will be well formed.

0 commit comments

Comments
 (0)