Quantcast
Channel: Grafana k6 - Grafana Labs Community Forums
Viewing all articles
Browse latest Browse all 348

Blocking sse extension

$
0
0

I’m using K6 and the sse extension to write some complex load tests that require a combination of http posts and SSE events. I was surprised that the “open” blocked the entire test. Someone else had run into the same problem and I added to the issue on the extension repo Support for Parallel SSE Connections · Issue #16 · phymbert/xk6-sse · GitHub. (Based on the docs, I expect the WebSocket to have the same problem.)

Anyways, my question is if it’s possible to modify the extension to call some sort of next() or trigger the main event loop some other way. For example, the main loop in the SSE extension is here: xk6-sse/sse.go at main · phymbert/xk6-sse · GitHub Could the answer be as simple as adding a next() type of call in the for loop? If so, what is the API for that call?

Thanks in advance!!

Ken

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 348

Trending Articles