tkhq / qos

QuorumOS is a computation layer for running applications inside Trusted Execution Environments (TEEs)
GNU Affero General Public License v3.0
5 stars 2 forks source link

Add chunked decoding and JSON parsing to stream test #477

Closed r-n-o closed 4 months ago

r-n-o commented 4 months ago

Summary & Motivation (Problem vs. Solution)

I wrote this to explore parsing chunked streams, I think it's valuable to keep! It's a much stronger set of assertions, and it tests that the response is actually a valid JSON structure instead of asserting that the word "keys" is in it.

The other whitespace / stylistic changes are from running make lint locally.

How I Tested These Changes

Unit test