websockets-test fails
The send-big-packets
test fails in my environment. Interestingly if I run the test on its own it works:
$ meson test -C build/ --verbose websocket-test --test-args "-p /websocket/direct/send-big-packets"
ninja: Entering directory `/home/ross/Code/libsoup/build'
ninja: no work to do.
# random seed: R02S9478eb80a0375b52d9e104b7b9d91474
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation gnutls (GTlsBackendGnutls) for ‘gio-tls-backend’
# Start of websocket tests
# Start of direct tests
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# libsoup-DEBUG: sent frame
# libsoup-DEBUG: queued 1 frame of len 404
# libsoup-DEBUG: stopping input source
# libsoup-DEBUG: received frame 1 with 400 payload
# libsoup-DEBUG: message: delivering 1 with 400 length
# libsoup-DEBUG: sent frame
# libsoup-DEBUG: queued 1 frame of len 100010
# libsoup-DEBUG: stopping input source
# libsoup-DEBUG: received frame 1 with 100000 payload
# libsoup-DEBUG: message: delivering 1 with 100000 length
# libsoup-DEBUG: sent frame
# libsoup-DEBUG: queued 1 frame of len 1000010
# libsoup-DEBUG: stopping input source
# libsoup-DEBUG: received frame 1 with 1000000 payload
# libsoup-DEBUG: message: delivering 1 with 1000000 length
# libsoup-DEBUG: stopping input source
# libsoup-DEBUG: closing io stream
# libsoup-DEBUG: stopping input source
# libsoup-DEBUG: closing io stream
ok 1 /websocket/direct/send-big-packets
But running as part of the direct tests it fails:
$ meson test -C build/ --verbose websocket-test --test-args "-p /websocket/direct"
ninja: Entering directory `/home/ross/Code/libsoup/build'
ninja: no work to do.
# random seed: R02Sb7abe6671369994afa61f46112963872
[ ... ]
ok 22 /websocket/direct/deflate-send-server-to-client
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# libsoup-DEBUG: closed: completed io stream close
# libsoup-DEBUG: closed: completed io stream close
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# libsoup-DEBUG: sent frame
# libsoup-DEBUG: queued 1 frame of len 10
# libsoup-DEBUG: stopping input source
# libsoup-DEBUG: received frame 1 with 400 payload
# libsoup-DEBUG: message: delivering 1 with 400 length
# libsoup-DEBUG: sent frame
# libsoup-DEBUG: queued 1 frame of len 117
# libsoup-DEBUG: stopping input source
# libsoup-DEBUG: received frame 1 with 8192 payload
# libsoup-DEBUG: message: delivering 1 with 8192 length
**
ERROR:../tests/websocket-test.c:551:test_send_big_packets: assertion failed: (g_bytes_equal (sent, received))
Edited by Ross Burton