Skip to content

Commit f763bc1

Browse files
bushidocodesclaude
andauthored
test: correct resize response content-type to image/jpeg (#391)
The resize routes in workload_mix_realworld declared "http-resp-content-type": "image/png", but resize_image.wasm.so emits JPEG (sod_img_save_as_jpeg), so the label was wrong. Confirmed by the standalone image_resize test, which uses image/jpeg and whose output matches expected_result.jpg byte-for-byte. Align all six resize routes with the actual output. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 419eee8 commit f763bc1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/workload_mix_realworld/spec.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,47 +200,47 @@
200200
"path": "resize_image.wasm.so",
201201
"expected-execution-us": 138903,
202202
"relative-deadline-us": 208354,
203-
"http-resp-content-type": "image/png",
203+
"http-resp-content-type": "image/jpeg",
204204
"admissions-percentile": 90
205205
},
206206
{
207207
"route": "/resize_1.6",
208208
"path": "resize_image.wasm.so",
209209
"expected-execution-us": 138903,
210210
"relative-deadline-us": 222245,
211-
"http-resp-content-type": "image/png",
211+
"http-resp-content-type": "image/jpeg",
212212
"admissions-percentile": 90
213213
},
214214
{
215215
"route": "/resize_1.7",
216216
"path": "resize_image.wasm.so",
217217
"expected-execution-us": 138903,
218218
"relative-deadline-us": 236135,
219-
"http-resp-content-type": "image/png",
219+
"http-resp-content-type": "image/jpeg",
220220
"admissions-percentile": 90
221221
},
222222
{
223223
"route": "/resize_1.8",
224224
"path": "resize_image.wasm.so",
225225
"expected-execution-us": 138903,
226226
"relative-deadline-us": 250025,
227-
"http-resp-content-type": "image/png",
227+
"http-resp-content-type": "image/jpeg",
228228
"admissions-percentile": 90
229229
},
230230
{
231231
"route": "/resize_1.9",
232232
"path": "resize_image.wasm.so",
233233
"expected-execution-us": 138903,
234234
"relative-deadline-us": 263916,
235-
"http-resp-content-type": "image/png",
235+
"http-resp-content-type": "image/jpeg",
236236
"admissions-percentile": 90
237237
},
238238
{
239239
"route": "/resize_2.0",
240240
"path": "resize_image.wasm.so",
241241
"expected-execution-us": 138903,
242242
"relative-deadline-us": 277806,
243-
"http-resp-content-type": "image/png",
243+
"http-resp-content-type": "image/jpeg",
244244
"admissions-percentile": 90
245245
}
246246
]

0 commit comments

Comments
 (0)