@@ -30,23 +30,23 @@ export const test = {
3030
3131 let expected = [
3232 // http-test.js: fetch and scheduled events get reported correctly.
33- '{"type":"onset","info":{"type":"fetch","method":"POST","url":"http://placeholder/body-length","cfJson":"{} ","headers":[]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
34- '{"type":"onset","info":{"type":"fetch","method":"POST","url":"http://placeholder/body-length","cfJson":"{} ","headers":[]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
33+ '{"type":"onset","info":{"type":"fetch","method":"POST","url":"http://placeholder/body-length","cfJson":"","headers":[]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
34+ '{"type":"onset","info":{"type":"fetch","method":"POST","url":"http://placeholder/body-length","cfJson":"","headers":[]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
3535 '{"type":"onset","info":{"type":"scheduled","scheduledTime":"1970-01-01T00:00:00.000Z","cron":""}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
3636 '{"type":"onset","info":{"type":"scheduled","scheduledTime":"1970-01-01T00:00:00.000Z","cron":"* * * * 30"}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
37- '{"type":"onset","info":{"type":"fetch","method":"GET","url":"http://placeholder/not-found","cfJson":"{} ","headers":[]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
38- '{"type":"onset","info":{"type":"fetch","method":"GET","url":"http://placeholder/web-socket","cfJson":"{} ","headers":[]} }{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
37+ '{"type":"onset","info":{"type":"fetch","method":"GET","url":"http://placeholder/not-found","cfJson":"","headers":[]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
38+ '{"type":"onset","info":{"type":"fetch","method":"GET","url":"http://placeholder/web-socket","cfJson":"","headers":[{"name":"upgrade","value":"websocket"}]}}{"type":"exception","name":"Error","message":"The script will never generate a response." }{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
3939
4040 // queue-test.js: queue events
41- '{"type":"onset","info":{"type":"fetch","method":"POST","url":"https://fake-host/message","cfJson":"{} ","headers":[]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
42- '{"type":"onset","info":{"type":"fetch","method":"POST","url":"https://fake-host/message","cfJson":"{} ","headers":[]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
43- '{"type":"onset","info":{"type":"fetch","method":"POST","url":"https://fake-host/message","cfJson":"{} ","headers":[]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
44- '{"type":"onset","info":{"type":"fetch","method":"POST","url":"https://fake-host/message","cfJson":"{} ","headers":[]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
45- '{"type":"onset","info":{"type":"fetch","method":"POST","url":"https://fake-host/batch","cfJson":"{} ","headers":[]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
41+ '{"type":"onset","info":{"type":"fetch","method":"POST","url":"https://fake-host/message","cfJson":"","headers":[{"name":"content-type","value":"application/octet-stream"},{"name":"x-msg-delay-secs","value":"2"},{"name":"x-msg-fmt","value":"text"} ]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
42+ '{"type":"onset","info":{"type":"fetch","method":"POST","url":"https://fake-host/message","cfJson":"","headers":[{"name":"content-type","value":"application/octet-stream"},{"name":"x-msg-fmt","value":"bytes"} ]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
43+ '{"type":"onset","info":{"type":"fetch","method":"POST","url":"https://fake-host/message","cfJson":"","headers":[{"name":"content-type","value":"application/octet-stream"},{"name":"x-msg-fmt","value":"json"} ]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
44+ '{"type":"onset","info":{"type":"fetch","method":"POST","url":"https://fake-host/message","cfJson":"","headers":[{"name":"content-type","value":"application/octet-stream"},{"name":"x-msg-fmt","value":"v8"} ]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
45+ '{"type":"onset","info":{"type":"fetch","method":"POST","url":"https://fake-host/batch","cfJson":"","headers":[{"name":"cf-queue-batch-bytes","value":"31"},{"name":"cf-queue-batch-count","value":"4"},{"name":"cf-queue-largest-msg","value":"13"},{"name":"content-type","value":"application/json"},{"name":"x-msg-delay-secs","value":"2"} ]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
4646 '{"type":"onset","info":{"type":"queue","queueName":"test-queue","batchSize":5}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
4747
4848 // actor-alarms-test.js: alarm events
49- '{"type":"onset","info":{"type":"fetch","method":"GET","url":"http://foo/test","cfJson":"{} ","headers":[]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
49+ '{"type":"onset","info":{"type":"fetch","method":"GET","url":"http://foo/test","cfJson":"","headers":[]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
5050 '{"type":"onset","info":{"type":"alarm","scheduledTime":"1970-01-01T00:00:00.000Z"}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
5151
5252 // legacy tail worker, triggered via alarm test. It would appear that these being recorded
@@ -58,8 +58,8 @@ export const test = {
5858 '{"type":"onset","info":{"type":"trace","traces":[""]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
5959
6060 // tests/websocket-hibernation.js: hibernatableWebSocket events
61- '{"type":"onset","info":{"type":"fetch","method":"GET","url":"http://example.com/","cfJson":"{} ","headers":[]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
62- '{"type":"onset","info":{"type":"fetch","method":"GET","url":"http://example.com/hibernation","cfJson":"{} ","headers":[]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
61+ '{"type":"onset","info":{"type":"fetch","method":"GET","url":"http://example.com/","cfJson":"","headers":[{"name":"upgrade","value":"websocket"} ]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
62+ '{"type":"onset","info":{"type":"fetch","method":"GET","url":"http://example.com/hibernation","cfJson":"","headers":[{"name":"upgrade","value":"websocket"} ]}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
6363 '{"type":"onset","info":{"type":"hibernatableWebSocket","info":{"type":"message"}}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
6464 '{"type":"onset","info":{"type":"hibernatableWebSocket","info":{"type":"close","code":1000,"wasClean":true}}}{"type":"outcome","outcome":"ok","cpuTime":0,"wallTime":0}' ,
6565 ] ;
0 commit comments