WebGPU CTS: Send CONNECTION_ACK when the websocket is open

Bug: chromium:1434762
Change-Id: Id287588565356eca8222a0ef43a35619a1f6f8b1
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/131360
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Brian Sheedy <bsheedy@google.com>
This commit is contained in:
Austin Eng 2023-05-03 23:36:12 +00:00 committed by Dawn LUCI CQ
parent 057b7f326e
commit 2046163766
1 changed files with 3 additions and 0 deletions

View File

@ -91,6 +91,9 @@ function byteSize(s) {
async function setupWebsocket(port) {
socket = new WebSocket('ws://127.0.0.1:' + port)
socket.addEventListener('open', () => {
socket.send('{"type":"CONNECTION_ACK"}');
});
socket.addEventListener('message', runCtsTestViaSocket);
}