Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-websocket-driver.spec'], chrootPath='/var/lib/mock/rhel+epel-8-x86_64-1689011179.672396/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.25x00wwq:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.25x00wwq:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '50bd2da4e41248f9b63e93e159ec49a3', '-D', '/var/lib/mock/rhel+epel-8-x86_64-1689011179.672396/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.25x00wwq:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-websocket-driver.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/rubygem-websocket-driver-0.7.5-4.el8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-websocket-driver.spec'], chrootPath='/var/lib/mock/rhel+epel-8-x86_64-1689011179.672396/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.25x00wwq:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.25x00wwq:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '4ce15080129c4431bca66f01ad706005', '-D', '/var/lib/mock/rhel+epel-8-x86_64-1689011179.672396/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.25x00wwq:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-websocket-driver.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.xv6s69 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf websocket-driver-0.7.5 + /usr/bin/tar -xof /builddir/build/SOURCES/websocket-driver-ruby-0.7.5-tests.txz + /usr/bin/gem unpack /builddir/build/SOURCES/websocket-driver-0.7.5.gem Unpacked gem: '/builddir/build/BUILD/websocket-driver-0.7.5' + /usr/bin/gem spec /builddir/build/SOURCES/websocket-driver-0.7.5.gem --ruby + STATUS=0 + '[' 0 -ne 0 ']' + cd websocket-driver-0.7.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.lSLgHx + umask 022 + cd /builddir/build/BUILD + cd websocket-driver-0.7.5 + gem build ../websocket-driver-0.7.5.gemspec WARNING: open-ended dependency on websocket-extensions (>= 0.1.0) is not recommended if websocket-extensions is semantically versioned, use: add_runtime_dependency 'websocket-extensions', '~> 0.1', '>= 0.1.0' WARNING: open-ended dependency on eventmachine (>= 0, development) is not recommended if eventmachine is semantically versioned, use: add_development_dependency 'eventmachine', '~> 0' WARNING: open-ended dependency on permessage_deflate (>= 0, development) is not recommended if permessage_deflate is semantically versioned, use: add_development_dependency 'permessage_deflate', '~> 0' WARNING: open-ended dependency on rake-compiler (>= 0, development) is not recommended if rake-compiler is semantically versioned, use: add_development_dependency 'rake-compiler', '~> 0' WARNING: open-ended dependency on rspec (>= 0, development) is not recommended if rspec is semantically versioned, use: add_development_dependency 'rspec', '~> 0' WARNING: See http://guides.rubygems.org/specification-reference/ for help Successfully built RubyGem Name: websocket-driver Version: 0.7.5 File: websocket-driver-0.7.5.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc websocket-driver-0.7.5.gem WARNING: You build with buildroot. Build root: /builddir/build/BUILD/websocket-driver-0.7.5 Bin dir: /builddir/build/BUILD/websocket-driver-0.7.5/usr/bin Gem home: /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/CHANGELOG.md /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/LICENSE.md /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/README.md /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/ext/websocket-driver/WebsocketMaskService.java /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/ext/websocket-driver/extconf.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/ext/websocket-driver/websocket_mask.c /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/driver.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/driver/client.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/driver/draft75.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/driver/draft76.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/driver/event_emitter.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/driver/headers.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/driver/hybi.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/driver/hybi/message.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/driver/proxy.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/driver/server.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/driver/stream_reader.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/http.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/http/headers.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/http/request.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/http/response.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/mask.rb /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/lib/websocket/websocket_mask.rb Building native extensions. This could take a while... current directory: /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/ext/websocket-driver /usr/bin/ruby -r ./siteconf20230710-41-nw0sce.rb extconf.rb creating Makefile current directory: /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/ext/websocket-driver make "DESTDIR=" clean rm -f rm -f websocket_mask.so *.o *.bak mkmf.log .*.time current directory: /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/ext/websocket-driver make "DESTDIR=" gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -m64 -o websocket_mask.o -c websocket_mask.c rm -f websocket_mask.so gcc -shared -o websocket_mask.so websocket_mask.o -L. -L/usr/lib64 -L. -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -m64 -m64 -lruby -lc current directory: /builddir/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5/ext/websocket-driver make "DESTDIR=" install /usr/bin/mkdir -p . ./.gem.20230710-41-1b6r4mf exit > .sitearchdir.time /usr/bin/install -c -m 0755 websocket_mask.so ./.gem.20230710-41-1b6r4mf Successfully installed websocket-driver-0.7.5 Parsing documentation for websocket-driver-0.7.5 Parsing sources... 4% [ 1/25] README.md 8% [ 2/25] ext/websocket-driver/Makefile 12% [ 3/25] ext/websocket-driver/WebsocketMaskService.java 16% [ 4/25] ext/websocket-driver/extconf.rb 20% [ 5/25] ext/websocket-driver/websocket_mask.c 24% [ 6/25] ext/websocket-driver/websocket_mask.o 28% [ 7/25] ext/websocket-driver/websocket_mask.so 32% [ 8/25] lib/websocket/driver.rb 36% [ 9/25] lib/websocket/driver/client.rb 40% [10/25] lib/websocket/driver/draft75.rb 44% [11/25] lib/websocket/driver/draft76.rb 48% [12/25] lib/websocket/driver/event_emitter.rb 52% [13/25] lib/websocket/driver/headers.rb 56% [14/25] lib/websocket/driver/hybi.rb 60% [15/25] lib/websocket/driver/hybi/frame.rb 64% [16/25] lib/websocket/driver/hybi/message.rb 68% [17/25] lib/websocket/driver/proxy.rb 72% [18/25] lib/websocket/driver/server.rb 76% [19/25] lib/websocket/driver/stream_reader.rb 80% [20/25] lib/websocket/http.rb 84% [21/25] lib/websocket/http/headers.rb 88% [22/25] lib/websocket/http/request.rb 92% [23/25] lib/websocket/http/response.rb 96% [24/25] lib/websocket/mask.rb 100% [25/25] lib/websocket/websocket_mask.rb Installing ri documentation for websocket-driver-0.7.5 Installing darkfish documentation for websocket-driver-0.7.5 Done installing documentation for websocket-driver after 0 seconds 1 gem installed + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.dRbfPa + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-websocket-driver-0.7.5-4.el8.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-websocket-driver-0.7.5-4.el8.x86_64 ++ dirname /builddir/build/BUILDROOT/rubygem-websocket-driver-0.7.5-4.el8.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-websocket-driver-0.7.5-4.el8.x86_64 + cd websocket-driver-0.7.5 + mkdir -p /builddir/build/BUILDROOT/rubygem-websocket-driver-0.7.5-4.el8.x86_64/usr/share/gems + cp -a ./usr/share/gems/build_info ./usr/share/gems/cache ./usr/share/gems/doc ./usr/share/gems/extensions ./usr/share/gems/gems ./usr/share/gems/specifications /builddir/build/BUILDROOT/rubygem-websocket-driver-0.7.5-4.el8.x86_64/usr/share/gems/ + mkdir -p /builddir/build/BUILDROOT/rubygem-websocket-driver-0.7.5-4.el8.x86_64/usr/lib64/gems/ruby/websocket-driver-0.7.5 + cp -a ./usr/lib64/gems/ruby/websocket-driver-0.7.5/gem.build_complete ./usr/lib64/gems/ruby/websocket-driver-0.7.5/websocket_mask.so /builddir/build/BUILDROOT/rubygem-websocket-driver-0.7.5-4.el8.x86_64/usr/lib64/gems/ruby/websocket-driver-0.7.5/ + rm -rf /builddir/build/BUILDROOT/rubygem-websocket-driver-0.7.5-4.el8.x86_64/usr/share/gems/gems/websocket-driver-0.7.5/ext/ + /usr/lib/rpm/find-debuginfo.sh -j2 --strict-build-id -m -i --build-id-seed 0.7.5-4.el8 --unique-debug-suffix -0.7.5-4.el8.x86_64 --unique-debug-src-base rubygem-websocket-driver-0.7.5-4.el8.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/websocket-driver-0.7.5 extracting debug info from /builddir/build/BUILDROOT/rubygem-websocket-driver-0.7.5-4.el8.x86_64/usr/lib64/gems/ruby/websocket-driver-0.7.5/websocket_mask.so /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 2 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile '' 1 + /usr/lib/rpm/brp-python-hardlink + PYTHON3=/usr/bin/python3.6 + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.9qOpfK + umask 022 + cd /builddir/build/BUILD ~/build/BUILD/websocket-driver-0.7.5/usr/share/gems/gems/websocket-driver-0.7.5 ~/build/BUILD/websocket-driver-0.7.5 + cd websocket-driver-0.7.5 + pushd ./usr/share/gems/gems/websocket-driver-0.7.5 + cp -r /builddir/build/BUILD/spec . + cat /builddir/build/SOURCES/rubygem-websocket-driver-0.7.5-Use-port-80-explicitly-in-tests.patch + patch -p1 patching file spec/websocket/driver/client_spec.rb + sed -i '/bundler/ s/^/#/' spec/spec_helper.rb ++ dirs +1 + rspec -I~/build/BUILD/websocket-driver-0.7.5/usr/lib64/gems/ruby/websocket-driver-0.7.5 spec ..F..FF.FFFF................................................................................................................................................................................... Failures: 1) WebSocket::Driver::Client in the beginning state start writes the handshake request to the socket Failure/Error: expect(socket).to receive(:write).with( "GET /socket HTTP/1.1\r\n" + "Host: www.example.com:80\r\n" + "Upgrade: websocket\r\n" + "Connection: Upgrade\r\n" + "Sec-WebSocket-Key: 2vBVWg4Qyk3ZoM/5d3QD9Q==\r\n" + "Sec-WebSocket-Version: 13\r\n" + "\r\n") # received :write with unexpected arguments expected: ("GET /socket HTTP/1.1\r\nHost: www.example.com:80\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: 2vBVWg4Qyk3ZoM/5d3QD9Q==\r\nSec-WebSocket-Version: 13\r\n\r\n") got: ("GET /socket HTTP/1.1\r\nHost: www.example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: 2vBVWg4Qyk3ZoM/5d3QD9Q==\r\nSec-WebSocket-Version: 13\r\n\r\n") Diff: @@ -1,5 +1,5 @@ GET /socket HTTP/1.1 -Host: www.example.com:80 +Host: www.example.com Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: 2vBVWg4Qyk3ZoM/5d3QD9Q== # ./spec/websocket/driver/client_spec.rb:67:in `block (4 levels) in ' 2) WebSocket::Driver::Client in the beginning state start with subprotocols writes the handshake with Sec-WebSocket-Protocol Failure/Error: expect(socket).to receive(:write).with( "GET /socket HTTP/1.1\r\n" + "Host: www.example.com:80\r\n" + "Upgrade: websocket\r\n" + "Connection: Upgrade\r\n" + "Sec-WebSocket-Key: 2vBVWg4Qyk3ZoM/5d3QD9Q==\r\n" + "Sec-WebSocket-Version: 13\r\n" + "Sec-WebSocket-Protocol: foo, bar, xmpp\r\n" + "\r\n") # received :write with unexpected arguments expected: ("GET /socket HTTP/1.1\r\nHost: www.example.com:80\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec...Wg4Qyk3ZoM/5d3QD9Q==\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Protocol: foo, bar, xmpp\r\n\r\n") got: ("GET /socket HTTP/1.1\r\nHost: www.example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-We...Wg4Qyk3ZoM/5d3QD9Q==\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Protocol: foo, bar, xmpp\r\n\r\n") Diff: @@ -1,5 +1,5 @@ GET /socket HTTP/1.1 -Host: www.example.com:80 +Host: www.example.com Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: 2vBVWg4Qyk3ZoM/5d3QD9Q== # ./spec/websocket/driver/client_spec.rb:86:in `block (5 levels) in ' 3) WebSocket::Driver::Client in the beginning state start with basic auth writes the handshake with Sec-WebSocket-Protocol Failure/Error: expect(socket).to receive(:write).with( "GET /socket HTTP/1.1\r\n" + "Host: www.example.com:80\r\n" + "Upgrade: websocket\r\n" + "Connection: Upgrade\r\n" + "Sec-WebSocket-Key: 2vBVWg4Qyk3ZoM/5d3QD9Q==\r\n" + "Sec-WebSocket-Version: 13\r\n" + "Authorization: Basic dXNlcjpwYXNz\r\n" + "\r\n") # received :write with unexpected arguments expected: ("GET /socket HTTP/1.1\r\nHost: www.example.com:80\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec... 2vBVWg4Qyk3ZoM/5d3QD9Q==\r\nSec-WebSocket-Version: 13\r\nAuthorization: Basic dXNlcjpwYXNz\r\n\r\n") got: ("GET /socket HTTP/1.1\r\nHost: www.example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-We... 2vBVWg4Qyk3ZoM/5d3QD9Q==\r\nSec-WebSocket-Version: 13\r\nAuthorization: Basic dXNlcjpwYXNz\r\n\r\n") Diff: @@ -1,5 +1,5 @@ GET /socket HTTP/1.1 -Host: www.example.com:80 +Host: www.example.com Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: 2vBVWg4Qyk3ZoM/5d3QD9Q== # ./spec/websocket/driver/client_spec.rb:103:in `block (5 levels) in ' 4) WebSocket::Driver::Client in the beginning state start with custom headers writes the handshake with custom headers Failure/Error: expect(socket).to receive(:write).with( "GET /socket HTTP/1.1\r\n" + "Host: www.example.com:80\r\n" + "Upgrade: websocket\r\n" + "Connection: Upgrade\r\n" + "Sec-WebSocket-Key: 2vBVWg4Qyk3ZoM/5d3QD9Q==\r\n" + "Sec-WebSocket-Version: 13\r\n" + "User-Agent: Chrome\r\n" + "\r\n") # received :write with unexpected arguments expected: ("GET /socket HTTP/1.1\r\nHost: www.example.com:80\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec...-WebSocket-Key: 2vBVWg4Qyk3ZoM/5d3QD9Q==\r\nSec-WebSocket-Version: 13\r\nUser-Agent: Chrome\r\n\r\n") got: ("GET /socket HTTP/1.1\r\nHost: www.example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: 2vBVWg4Qyk3ZoM/5d3QD9Q==\r\nSec-WebSocket-Version: 13\r\nUser-Agent: Chrome\r\n\r\n") Diff: @@ -1,5 +1,5 @@ GET /socket HTTP/1.1 -Host: www.example.com:80 +Host: www.example.com Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: 2vBVWg4Qyk3ZoM/5d3QD9Q== # ./spec/websocket/driver/client_spec.rb:130:in `block (5 levels) in ' 5) WebSocket::Driver::Client using a proxy sends a CONNECT request Failure/Error: expect(socket).to receive(:write).with( "CONNECT www.example.com:80 HTTP/1.1\r\n" + "Host: www.example.com:80\r\n" + "Connection: keep-alive\r\n" + "Proxy-Connection: keep-alive\r\n" + "\r\n") # received :write with unexpected arguments expected: ("CONNECT www.example.com:80 HTTP/1.1\r\nHost: www.example.com:80\r\nConnection: keep-alive\r\nProxy-Connection: keep-alive\r\n\r\n") got: ("CONNECT www.example.com:80 HTTP/1.1\r\nHost: www.example.com\r\nConnection: keep-alive\r\nProxy-Connection: keep-alive\r\n\r\n") Diff: @@ -1,5 +1,5 @@ CONNECT www.example.com:80 HTTP/1.1 -Host: www.example.com:80 +Host: www.example.com Connection: keep-alive Proxy-Connection: keep-alive # ./spec/websocket/driver/client_spec.rb:153:in `block (3 levels) in ' 6) WebSocket::Driver::Client using a proxy sends an authenticated CONNECT request Failure/Error: expect(socket).to receive(:write).with( "CONNECT www.example.com:80 HTTP/1.1\r\n" + "Host: www.example.com:80\r\n" + "Connection: keep-alive\r\n" + "Proxy-Connection: keep-alive\r\n" + "Proxy-Authorization: Basic dXNlcjpwYXNz\r\n" + "\r\n") # received :write with unexpected arguments expected: ("CONNECT www.example.com:80 HTTP/1.1\r\nHost: www.example.com:80\r\nConnection: keep-alive\r\nProxy-Connection: keep-alive\r\nProxy-Authorization: Basic dXNlcjpwYXNz\r\n\r\n") got: ("CONNECT www.example.com:80 HTTP/1.1\r\nHost: www.example.com\r\nConnection: keep-alive\r\nProxy-Connection: keep-alive\r\nProxy-Authorization: Basic dXNlcjpwYXNz\r\n\r\n") Diff: @@ -1,5 +1,5 @@ CONNECT www.example.com:80 HTTP/1.1 -Host: www.example.com:80 +Host: www.example.com Connection: keep-alive Proxy-Connection: keep-alive Proxy-Authorization: Basic dXNlcjpwYXNz # ./spec/websocket/driver/client_spec.rb:164:in `block (3 levels) in ' 7) WebSocket::Driver::Client using a proxy sends a CONNECT request with custom headers Failure/Error: expect(socket).to receive(:write).with( "CONNECT www.example.com:80 HTTP/1.1\r\n" + "Host: www.example.com:80\r\n" + "Connection: keep-alive\r\n" + "Proxy-Connection: keep-alive\r\n" + "User-Agent: Chrome\r\n" + "\r\n") # received :write with unexpected arguments expected: ("CONNECT www.example.com:80 HTTP/1.1\r\nHost: www.example.com:80\r\nConnection: keep-alive\r\nProxy-Connection: keep-alive\r\nUser-Agent: Chrome\r\n\r\n") got: ("CONNECT www.example.com:80 HTTP/1.1\r\nHost: www.example.com\r\nConnection: keep-alive\r\nProxy-Connection: keep-alive\r\nUser-Agent: Chrome\r\n\r\n") Diff: @@ -1,5 +1,5 @@ CONNECT www.example.com:80 HTTP/1.1 -Host: www.example.com:80 +Host: www.example.com Connection: keep-alive Proxy-Connection: keep-alive User-Agent: Chrome # ./spec/websocket/driver/client_spec.rb:177:in `block (3 levels) in ' Finished in 0.10975 seconds (files took 0.09893 seconds to load) 191 examples, 7 failures Failed examples: rspec ./spec/websocket/driver/client_spec.rb:66 # WebSocket::Driver::Client in the beginning state start writes the handshake request to the socket rspec ./spec/websocket/driver/client_spec.rb:85 # WebSocket::Driver::Client in the beginning state start with subprotocols writes the handshake with Sec-WebSocket-Protocol rspec ./spec/websocket/driver/client_spec.rb:102 # WebSocket::Driver::Client in the beginning state start with basic auth writes the handshake with Sec-WebSocket-Protocol rspec ./spec/websocket/driver/client_spec.rb:129 # WebSocket::Driver::Client in the beginning state start with custom headers writes the handshake with custom headers rspec ./spec/websocket/driver/client_spec.rb:151 # WebSocket::Driver::Client using a proxy sends a CONNECT request rspec ./spec/websocket/driver/client_spec.rb:162 # WebSocket::Driver::Client using a proxy sends an authenticated CONNECT request rspec ./spec/websocket/driver/client_spec.rb:174 # WebSocket::Driver::Client using a proxy sends a CONNECT request with custom headers ~/build/BUILD/websocket-driver-0.7.5 Processing files: rubygem-websocket-driver-0.7.5-4.el8.x86_64 + : + popd + exit 0 Provides: rubygem(websocket-driver) = 0.7.5-1 rubygem-websocket-driver = 0.7.5-4.el8 rubygem-websocket-driver(x86-64) = 0.7.5-4.el8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libruby.so.2.5()(64bit) rtld(GNU_HASH) ruby(rubygems) rubygem(websocket-extensions) >= 0.1.0 Processing files: rubygem-websocket-driver-doc-0.7.5-4.el8.noarch Provides: rubygem-websocket-driver-doc = 0.7.5-4.el8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rubygem-websocket-driver-debugsource-0.7.5-4.el8.x86_64 Provides: rubygem-websocket-driver-debugsource = 0.7.5-4.el8 rubygem-websocket-driver-debugsource(x86-64) = 0.7.5-4.el8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rubygem-websocket-driver-debuginfo-0.7.5-4.el8.x86_64 Provides: debuginfo(build-id) = 4dbc3532ff9f36ac02eb4748ebffb40dd50102bc rubygem-websocket-driver-debuginfo = 0.7.5-4.el8 rubygem-websocket-driver-debuginfo(x86-64) = 0.7.5-4.el8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: rubygem-websocket-driver-debugsource(x86-64) = 0.7.5-4.el8 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rubygem-websocket-driver-0.7.5-4.el8.x86_64 Wrote: /builddir/build/RPMS/rubygem-websocket-driver-0.7.5-4.el8.x86_64.rpm Wrote: /builddir/build/RPMS/rubygem-websocket-driver-doc-0.7.5-4.el8.noarch.rpm Wrote: /builddir/build/RPMS/rubygem-websocket-driver-debugsource-0.7.5-4.el8.x86_64.rpm Wrote: /builddir/build/RPMS/rubygem-websocket-driver-debuginfo-0.7.5-4.el8.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.TEsL7a + umask 022 + cd /builddir/build/BUILD + cd websocket-driver-0.7.5 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rubygem-websocket-driver-0.7.5-4.el8.x86_64 + exit 0 Child return code was: 0