Diff of the two buildlogs: -- --- b1/build.log 2024-01-11 11:40:10.055568825 +0000 +++ b2/build.log 2024-01-11 11:51:29.024395894 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Jan 10 23:32:35 -12 2024 -I: pbuilder-time-stamp: 1704972755 +I: Current time: Fri Jan 12 01:40:38 +14 2024 +I: pbuilder-time-stamp: 1704973238 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -17,7 +17,7 @@ I: copying [./golang-github-go-resty-resty_2.4.0-1.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.0CjIyyva/trustedkeys.kbx': General error +gpgv: keyblock resource '/tmp/dpkg-verify-sig.95fpM5SM/trustedkeys.kbx': General error gpgv: Signature made Thu Jan 14 07:24:09 2021 gpgv: using RSA key 098735E890D75A09B364168E1A0EB82F071F5EFE gpgv: issuer "alois@micard.lu" @@ -28,49 +28,80 @@ dpkg-source: info: unpacking golang-github-go-resty-resty_2.4.0-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/13356/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/14070/tmp/hooks/D01_modify_environment starting +debug: Running on ff64a. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jan 11 11:41 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/14070/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/14070/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=3 ' - DISTRIBUTION='bullseye' - HOME='/root' - HOST_ARCH='armhf' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="1" [2]="4" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.1.4(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=6 ' + DIRSTACK=() + DISTRIBUTION=bullseye + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='3b5e7de8f15c4bc6877550ba95f9fd98' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='13356' - PS1='# ' - PS2='> ' + INVOCATION_ID=4e1178d244c74bf19106bfdc29e10fae + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=14070 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.1TXuDL9n/pbuilderrc_r2CG --distribution bullseye --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.1TXuDL9n/b1 --logfile b1/build.log golang-github-go-resty-resty_2.4.0-1.dsc' - SUDO_GID='113' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:3142/' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.1TXuDL9n/pbuilderrc_dOV6 --distribution bullseye --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.1TXuDL9n/b2 --logfile b2/build.log golang-github-go-resty-resty_2.4.0-1.dsc' + SUDO_GID=114 + SUDO_UID=109 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:3142/ I: uname -a - Linux virt32a 6.1.0-17-armmp-lpae #1 SMP Debian 6.1.69-1 (2023-12-30) armv7l GNU/Linux + Linux i-capture-the-hostname 6.1.0-17-arm64 #1 SMP Debian 6.1.69-1 (2023-12-30) aarch64 GNU/Linux I: ls -l /bin total 3580 -rwxr-xr-x 1 root root 816764 Mar 27 2022 bash @@ -130,7 +161,7 @@ -rwxr-xr-x 1 root root 30732 Sep 22 2020 rmdir -rwxr-xr-x 1 root root 14144 Sep 27 2020 run-parts -rwxr-xr-x 1 root root 76012 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Jan 7 09:26 sh -> dash + lrwxrwxrwx 1 root root 9 Jan 11 11:41 sh -> /bin/bash -rwxr-xr-x 1 root root 22532 Sep 22 2020 sleep -rwxr-xr-x 1 root root 55360 Sep 22 2020 stty -rwsr-xr-x 1 root root 46704 Jan 20 2022 su @@ -156,7 +187,7 @@ -rwxr-xr-x 1 root root 2206 Apr 10 2022 zless -rwxr-xr-x 1 root root 1842 Apr 10 2022 zmore -rwxr-xr-x 1 root root 4577 Apr 10 2022 znew -I: user script /srv/workspace/pbuilder/13356/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/14070/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -238,7 +269,7 @@ Get: 38 http://deb.debian.org/debian bullseye/main armhf golang-golang-x-sys-dev all 0.0~git20210124.22da62e-1 [308 kB] Get: 39 http://deb.debian.org/debian bullseye/main armhf golang-golang-x-text-dev all 0.3.6-1 [3857 kB] Get: 40 http://deb.debian.org/debian bullseye/main armhf golang-golang-x-net-dev all 1:0.0+git20210119.5f4716e+dfsg-4 [659 kB] -Fetched 79.6 MB in 3s (26.1 MB/s) +Fetched 79.6 MB in 7s (11.1 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 17486 files and directories currently installed.) @@ -414,7 +445,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/golang-github-go-resty-resty-2.4.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../golang-github-go-resty-resty_2.4.0-1_source.changes +I: user script /srv/workspace/pbuilder/14070/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for bullseye +I: user script /srv/workspace/pbuilder/14070/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/golang-github-go-resty-resty-2.4.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../golang-github-go-resty-resty_2.4.0-1_source.changes dpkg-buildpackage: info: source package golang-github-go-resty-resty dpkg-buildpackage: info: source version 2.4.0-1 dpkg-buildpackage: info: source distribution unstable @@ -432,110 +467,110 @@ dh_autoreconf -O--builddirectory=_build -O--buildsystem=golang dh_auto_configure -O--builddirectory=_build -O--buildsystem=golang dh_auto_build -O--builddirectory=_build -O--buildsystem=golang - cd _build && go install -trimpath -v -p 3 github.com/go-resty/resty + cd _build && go install -trimpath -v -p 6 github.com/go-resty/resty internal/cpu -internal/unsafeheader runtime/internal/sys +internal/unsafeheader internal/race -runtime/internal/math sync/atomic unicode -internal/bytealg -runtime/internal/atomic unicode/utf8 math/bits -runtime -math -internal/testlog +runtime/internal/math container/list +internal/testlog crypto/internal/subtle +runtime/internal/atomic +internal/bytealg crypto/subtle +math unicode/utf16 vendor/golang.org/x/crypto/cryptobyte/asn1 internal/nettrace -runtime/cgo vendor/golang.org/x/crypto/internal/subtle encoding -internal/reflectlite +runtime/cgo +runtime sync -math/rand +internal/reflectlite internal/singleflight +math/rand errors sort +internal/oserror io +vendor/golang.org/x/net/dns/dnsmessage strconv -internal/oserror syscall +hash bytes strings -reflect -bufio -internal/syscall/unix -time -internal/syscall/execenv -hash hash/crc32 -crypto crypto/internal/randutil crypto/hmac +vendor/golang.org/x/crypto/hkdf +crypto +reflect crypto/rc4 -vendor/golang.org/x/net/dns/dnsmessage +vendor/golang.org/x/text/transform +bufio +path +regexp/syntax +internal/syscall/unix +internal/syscall/execenv +time +regexp +context internal/poll +os internal/fmtsort encoding/binary -os -context -crypto/cipher crypto/sha512 +crypto/cipher +crypto/sha1 crypto/ed25519/internal/edwards25519 -crypto/aes -crypto/des -fmt crypto/md5 -crypto/sha1 +fmt crypto/sha256 encoding/base64 path/filepath +crypto/aes +crypto/des encoding/pem -compress/flate -math/big -encoding/hex -io/ioutil net -compress/gzip -net/url vendor/golang.org/x/crypto/chacha20 +io/ioutil vendor/golang.org/x/crypto/poly1305 -crypto/elliptic -encoding/asn1 -vendor/golang.org/x/crypto/cryptobyte -crypto/rand -crypto/ed25519 -crypto/rsa -crypto/ecdsa -crypto/dsa -crypto/x509/pkix vendor/golang.org/x/crypto/chacha20poly1305 +encoding/hex +net/url vendor/golang.org/x/crypto/curve25519 -vendor/golang.org/x/crypto/hkdf +compress/flate +math/big encoding/json encoding/xml -vendor/golang.org/x/text/transform log vendor/golang.org/x/text/unicode/bidi +compress/gzip vendor/golang.org/x/text/unicode/norm vendor/golang.org/x/text/secure/bidirule vendor/golang.org/x/net/http2/hpack mime -vendor/golang.org/x/net/idna mime/quotedprintable net/http/internal -path -regexp/syntax +crypto/rand +encoding/asn1 +crypto/elliptic +crypto/dsa +crypto/ed25519 +crypto/rsa +vendor/golang.org/x/net/idna +vendor/golang.org/x/crypto/cryptobyte +crypto/x509/pkix +crypto/ecdsa net/textproto -crypto/x509 vendor/golang.org/x/net/http/httpproxy -regexp +crypto/x509 vendor/golang.org/x/net/http/httpguts mime/multipart crypto/tls @@ -545,7 +580,7 @@ golang.org/x/net/publicsuffix github.com/go-resty/resty dh_auto_test -O--builddirectory=_build -O--buildsystem=golang - cd _build && go test -vet=off -v -p 3 github.com/go-resty/resty + cd _build && go test -vet=off -v -p 6 github.com/go-resty/resty === RUN TestClientBasicAuth resty_test.go:404: Method: POST resty_test.go:405: Path: /login @@ -553,17 +588,17 @@ resty_test.go:435: Basic Auth: Basic bXl1c2VyOmJhc2ljYXV0aA== client_test.go:40: Result Success: &{"success" "login successful"} resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 29.215597ms - resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json; charset=utf-8] Date:[Thu, 11 Jan 2024 11:36:45 GMT]] + resty_test.go:648: Response Time: 104.270613ms + resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:20 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } ---- PASS: TestClientBasicAuth (0.04s) +--- PASS: TestClientBasicAuth (0.11s) === RUN TestClientAuthToken resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF ---- PASS: TestClientAuthToken (0.03s) +--- PASS: TestClientAuthToken (0.10s) === RUN TestClientAuthScheme resty_test.go:404: Method: GET resty_test.go:405: Path: /profile @@ -573,13 +608,13 @@ resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF ---- PASS: TestClientAuthScheme (0.04s) +--- PASS: TestClientAuthScheme (0.09s) === RUN TestOnAfterMiddleware resty_test.go:460: Method: PUT resty_test.go:461: Path: /plaintext - client_test.go:89: Request sent at: 2024-01-11 11:36:45.407088103 +0000 UTC m=+0.113028232 - client_test.go:90: Response Received at: 2024-01-11 11:36:45.409497116 +0000 UTC m=+0.115437165 ---- PASS: TestOnAfterMiddleware (0.02s) + client_test.go:89: Request sent at: 2024-01-11 11:48:20.959659554 +0000 UTC m=+0.313775218 + client_test.go:90: Response Received at: 2024-01-11 11:48:20.963507693 +0000 UTC m=+0.317623064 +--- PASS: TestOnAfterMiddleware (0.01s) === RUN TestClientRedirectPolicy resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-1 @@ -623,19 +658,19 @@ resty_test.go:532: Path: /redirect-20 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-1 ---- PASS: TestClientRedirectPolicy (0.02s) +--- PASS: TestClientRedirectPolicy (0.08s) === RUN TestClientTimeout resty_test.go:41: Method: GET resty_test.go:42: Path: /set-timeout-test ---- PASS: TestClientTimeout (6.00s) +--- PASS: TestClientTimeout (6.01s) === RUN TestClientTimeoutWithinThreshold resty_test.go:41: Method: GET resty_test.go:42: Path: /set-timeout-test-with-sequence resty_test.go:41: Method: GET resty_test.go:42: Path: /set-timeout-test-with-sequence ---- PASS: TestClientTimeoutWithinThreshold (4.00s) +--- PASS: TestClientTimeoutWithinThreshold (4.01s) === RUN TestClientTimeoutInternalError ---- PASS: TestClientTimeoutInternalError (0.01s) +--- PASS: TestClientTimeoutInternalError (0.00s) === RUN TestClientProxy --- PASS: TestClientProxy (0.02s) === RUN TestClientSetCertificates @@ -652,8 +687,8 @@ resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 8.859088ms - resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:36:55 GMT]] + resty_test.go:648: Response Time: 10.157035ms + resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:31 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response --- PASS: TestClientOnBeforeRequestModification (0.01s) @@ -674,7 +709,7 @@ resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json ---- PASS: TestClientPreRequestHook (0.00s) +--- PASS: TestClientPreRequestHook (0.03s) === RUN TestClientAllowsGetMethodPayload resty_test.go:41: Method: GET resty_test.go:42: Path: /get-method-payload-test @@ -696,30 +731,30 @@ resty_test.go:42: Path: /long-text resty_test.go:41: Method: GET resty_test.go:42: Path: /long-json ---- PASS: TestDebugBodySizeLimit (0.01s) +--- PASS: TestDebugBodySizeLimit (0.03s) === RUN TestAutoGzip resty_test.go:460: Method: GET resty_test.go:461: Path: /gzip-test resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 4.326034ms - resty_test.go:649: Response Headers: map[Content-Encoding:[gzip] Content-Length:[53] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:36:55 GMT]] + resty_test.go:648: Response Time: 7.247066ms + resty_test.go:649: Response Headers: map[Content-Encoding:[gzip] Content-Length:[53] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:31 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: This is Gzip response testing resty_test.go:460: Method: GET resty_test.go:461: Path: /gzip-test-gziped-empty-body resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 20.537372ms - resty_test.go:649: Response Headers: map[Content-Encoding:[gzip] Content-Length:[23] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:36:55 GMT]] + resty_test.go:648: Response Time: 27.420429ms + resty_test.go:649: Response Headers: map[Content-Encoding:[gzip] Content-Length:[23] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:31 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: resty_test.go:460: Method: GET resty_test.go:461: Path: /gzip-test-no-gziped-body resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 4.297077ms - resty_test.go:649: Response Headers: map[Content-Encoding:[gzip] Content-Length:[0] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:36:55 GMT]] + resty_test.go:648: Response Time: 1.718922ms + resty_test.go:649: Response Headers: map[Content-Encoding:[gzip] Content-Length:[0] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:31 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: ---- PASS: TestAutoGzip (0.03s) +--- PASS: TestAutoGzip (0.04s) === RUN TestLogCallbacks resty_test.go:404: Method: GET resty_test.go:405: Path: /profile @@ -729,11 +764,11 @@ resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF-Request ---- PASS: TestLogCallbacks (0.04s) +--- PASS: TestLogCallbacks (0.14s) === RUN TestNewWithLocalAddr resty_test.go:41: Method: GET resty_test.go:42: Path: / ---- PASS: TestNewWithLocalAddr (0.00s) +--- PASS: TestNewWithLocalAddr (0.01s) === RUN TestClientOnResponseError === RUN TestClientOnResponseError/successful_request === CONT TestClientOnResponseError @@ -773,30 +808,30 @@ resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF ---- PASS: TestClientOnResponseError (0.96s) - --- PASS: TestClientOnResponseError/successful_request (0.03s) - --- PASS: TestClientOnResponseError/http_status_error (0.03s) +--- PASS: TestClientOnResponseError (1.30s) + --- PASS: TestClientOnResponseError/successful_request (0.15s) + --- PASS: TestClientOnResponseError/http_status_error (0.10s) --- PASS: TestClientOnResponseError/before_request_error (0.00s) --- PASS: TestClientOnResponseError/before_request_error_retry (0.41s) - --- PASS: TestClientOnResponseError/after_response_error (0.03s) - --- PASS: TestClientOnResponseError/after_response_error_retry (0.45s) + --- PASS: TestClientOnResponseError/after_response_error (0.08s) + --- PASS: TestClientOnResponseError/after_response_error_retry (0.54s) === RUN TestResponseError --- PASS: TestResponseError (0.00s) === RUN TestSetContext resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.439884ms - resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:36:56 GMT]] + resty_test.go:648: Response Time: 10.519119ms + resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:32 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response ---- PASS: TestSetContext (0.00s) +--- PASS: TestSetContext (0.01s) === RUN TestSetContextWithError resty_test.go:41: Method: GET resty_test.go:42: Path: /mypage resty_test.go:647: Response Status: 400 Bad Request - resty_test.go:648: Response Time: 940.692µs - resty_test.go:649: Response Headers: map[Content-Length:[0] Date:[Thu, 11 Jan 2024 11:36:56 GMT]] + resty_test.go:648: Response Time: 10.660746ms + resty_test.go:649: Response Headers: map[Content-Length:[0] Date:[Thu, 11 Jan 2024 11:48:32 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: --- PASS: TestSetContextWithError (0.01s) @@ -804,20 +839,20 @@ context_test.go:57: Server: GET / context_test.go:62: Server: wrote 30 bytes context_test.go:63: Server: err is - context_test.go:82: Error: Get "http://127.0.0.1:38971/": context canceled + context_test.go:82: Error: Get "http://127.0.0.1:39563/": context canceled --- PASS: TestSetContextCancel (0.00s) === RUN TestSetContextCancelRetry context_test.go:96: Server: GET / context_test.go:101: Server: wrote 30 bytes context_test.go:102: Server: err is - context_test.go:125: Error: Get "http://127.0.0.1:36129/": context canceled ---- PASS: TestSetContextCancelRetry (0.00s) + context_test.go:125: Error: Get "http://127.0.0.1:42979/": context canceled +--- PASS: TestSetContextCancelRetry (0.02s) === RUN TestSetContextCancelWithError context_test.go:141: Server: GET / context_test.go:142: Server: sending StatusBadRequest response context_test.go:148: Server: wrote 39 bytes context_test.go:149: Server: err is - context_test.go:168: Error: Get "http://127.0.0.1:33007/": context canceled + context_test.go:168: Error: Get "http://127.0.0.1:40989/": context canceled --- PASS: TestSetContextCancelWithError (0.00s) === RUN TestClientRetryWithSetContext context_test.go:177: Method: GET @@ -828,15 +863,15 @@ context_test.go:178: Path: / context_test.go:177: Method: GET context_test.go:178: Path: / ---- PASS: TestClientRetryWithSetContext (5.65s) +--- PASS: TestClientRetryWithSetContext (5.67s) === RUN TestRequestContext --- PASS: TestRequestContext (0.00s) === RUN TestGet resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.188069ms - resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 1.851506ms + resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response --- PASS: TestGet (0.00s) @@ -844,17 +879,17 @@ resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.18073ms - resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 1.821756ms + resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response ---- PASS: TestGetCustomUserAgent (0.00s) +--- PASS: TestGetCustomUserAgent (0.01s) === RUN TestGetClientParamRequestParam resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 929.092µs - resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 2.036132ms + resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response --- PASS: TestGetClientParamRequestParam (0.01s) @@ -862,8 +897,8 @@ resty_test.go:41: Method: GET resty_test.go:42: Path: /mypage2 resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.197088ms - resty_test.go:649: Response Headers: map[Content-Length:[35] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 2.625301ms + resty_test.go:649: Response Headers: map[Content-Length:[35] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response from mypage2 --- PASS: TestGetRelativePath (0.00s) @@ -871,19 +906,19 @@ resty_test.go:41: Method: GET resty_test.go:42: Path: /mypage resty_test.go:647: Response Status: 400 Bad Request - resty_test.go:648: Response Time: 2.01633ms - resty_test.go:649: Response Headers: map[Content-Length:[0] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 1.842173ms + resty_test.go:649: Response Headers: map[Content-Length:[0] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: ---- PASS: TestGet400Error (0.00s) +--- PASS: TestGet400Error (0.01s) === RUN TestPostJSONStringSuccess resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json; charset=utf-8 resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.301238ms - resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 2.465175ms + resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } resty_test.go:234: Method: POST @@ -892,33 +927,33 @@ resty_test.go:237: Content-Type: application/json; charset=utf-8 resty_test.go:148: Error: &json.SyntaxError{msg:"invalid character '\"' after object key:value pair", Offset:24} resty_test.go:647: Response Status: 400 Bad Request - resty_test.go:648: Response Time: 533.73µs - resty_test.go:649: Response Headers: map[Content-Length:[62] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 1.188545ms + resty_test.go:649: Response Headers: map[Content-Length:[62] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "bad_request", "message": "Unable to read user info" } ---- PASS: TestPostJSONStringSuccess (0.00s) +--- PASS: TestPostJSONStringSuccess (0.01s) === RUN TestPostJSONBytesSuccess resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json; charset=utf-8 resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.175689ms - resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 7.597943ms + resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } ---- PASS: TestPostJSONBytesSuccess (0.00s) +--- PASS: TestPostJSONBytesSuccess (0.01s) === RUN TestPostJSONBytesIoReader resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json; charset=utf-8 resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 2.798098ms - resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 6.209897ms + resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } ---- PASS: TestPostJSONBytesIoReader (0.00s) +--- PASS: TestPostJSONBytesIoReader (0.01s) === RUN TestPostJSONStructSuccess resty_test.go:234: Method: POST resty_test.go:235: Path: /login @@ -926,11 +961,11 @@ resty_test.go:237: Content-Type: application/json; charset=utf-8 request_test.go:204: Result Success: &{"success" "login successful"} resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.150652ms - resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 5.973063ms + resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } ---- PASS: TestPostJSONStructSuccess (0.00s) +--- PASS: TestPostJSONStructSuccess (0.01s) === RUN TestPostJSONRPCStructSuccess resty_test.go:234: Method: POST resty_test.go:235: Path: /login @@ -938,8 +973,8 @@ resty_test.go:237: Content-Type: application/json-rpc request_test.go:226: Result Success: &{"success" "login successful"} resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 5.86021ms - resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json-rpc] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 6.87519ms + resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json-rpc] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } --- PASS: TestPostJSONRPCStructSuccess (0.01s) @@ -950,8 +985,8 @@ resty_test.go:237: Content-Type: application/json; charset=utf-8 request_test.go:251: Result Error: &{"unauthorized" "Invalid credentials"} resty_test.go:647: Response Status: 401 Unauthorized - resty_test.go:648: Response Time: 1.133254ms - resty_test.go:649: Response Headers: map[Content-Length:[58] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 2.538967ms + resty_test.go:649: Response Headers: map[Content-Length:[58] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "unauthorized", "message": "Invalid credentials" } --- PASS: TestPostJSONStructInvalidLogin (0.00s) @@ -962,8 +997,8 @@ resty_test.go:237: Content-Type: application/json; charset=utf-8 request_test.go:273: Result Error: &{"unauthorized" "Invalid credentials"} resty_test.go:647: Response Status: 401 Unauthorized - resty_test.go:648: Response Time: 1.197588ms - resty_test.go:649: Response Headers: map[Content-Length:[58] Content-Type:[application/problem+json; charset=utf-8] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 3.505263ms + resty_test.go:649: Response Headers: map[Content-Length:[58] Content-Type:[application/problem+json; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "unauthorized", "message": "Invalid credentials" } --- PASS: TestPostJSONErrorRFC7807 (0.00s) @@ -974,8 +1009,8 @@ resty_test.go:237: Content-Type: application/json request_test.go:293: Result Success: &{"success" "login successful"} resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.113316ms - resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 3.256761ms + resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } --- PASS: TestPostJSONMapSuccess (0.00s) @@ -986,11 +1021,11 @@ resty_test.go:237: Content-Type: application/json request_test.go:314: Result Success: &{"" ""} resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.985374ms - resty_test.go:649: Response Headers: map[Content-Length:[51] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 2.363384ms + resty_test.go:649: Response Headers: map[Content-Length:[51] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful", } ---- PASS: TestPostJSONMapInvalidResponseJson (0.00s) +--- PASS: TestPostJSONMapInvalidResponseJson (0.01s) === RUN TestPostJSONMarshalError --- PASS: TestPostJSONMarshalError (0.00s) === RUN TestForceContentTypeForGH276andGH240 @@ -1000,22 +1035,22 @@ resty_test.go:237: Content-Type: application/json request_test.go:368: Result Success: &{"" ""} resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 4.221244ms - resty_test.go:649: Response Headers: map[Content-Length:[61] Content-Type:[text/html] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 3.087011ms + resty_test.go:649: Response Headers: map[Content-Length:[61] Content-Type:[text/html] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: Test JSON request with HTML response --- PASS: TestForceContentTypeForGH276andGH240 (0.00s) === RUN TestPostXMLStringSuccess resty_test.go:234: Method: POST resty_test.go:235: Path: /login - resty_test.go:236: RawQuery: request_no=1704973022 + resty_test.go:236: RawQuery: request_no=1704973718 resty_test.go:237: Content-Type: application/xml resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.579812ms - resty_test.go:649: Response Headers: map[Content-Length:[116] Content-Type:[application/xml] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 5.801854ms + resty_test.go:649: Response Headers: map[Content-Length:[116] Content-Type:[application/xml] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: successlogin successful ---- PASS: TestPostXMLStringSuccess (0.00s) +--- PASS: TestPostXMLStringSuccess (0.01s) === RUN TestPostXMLMarshalError --- PASS: TestPostXMLMarshalError (0.00s) === RUN TestPostXMLStringError @@ -1025,19 +1060,19 @@ resty_test.go:237: Content-Type: application/xml resty_test.go:173: Error: XML syntax error on line 1: element closed by resty_test.go:647: Response Status: 400 Bad Request - resty_test.go:648: Response Time: 1.139713ms - resty_test.go:649: Response Headers: map[Content-Length:[124] Content-Type:[application/xml] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 2.956052ms + resty_test.go:649: Response Headers: map[Content-Length:[124] Content-Type:[application/xml] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: bad_requestUnable to read user info --- PASS: TestPostXMLStringError (0.00s) === RUN TestPostXMLBytesSuccess resty_test.go:234: Method: POST resty_test.go:235: Path: /login - resty_test.go:236: RawQuery: request_no=1704973022 + resty_test.go:236: RawQuery: request_no=1704973718 resty_test.go:237: Content-Type: application/xml resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.290159ms - resty_test.go:649: Response Headers: map[Content-Length:[116] Content-Type:[application/xml] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 3.073011ms + resty_test.go:649: Response Headers: map[Content-Length:[116] Content-Type:[application/xml] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: successlogin successful --- PASS: TestPostXMLBytesSuccess (0.00s) @@ -1048,11 +1083,11 @@ resty_test.go:237: Content-Type: application/xml request_test.go:468: Result Success: &{"" "login successful"} resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.077699ms - resty_test.go:649: Response Headers: map[Content-Length:[116] Content-Type:[application/xml] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 3.872764ms + resty_test.go:649: Response Headers: map[Content-Length:[116] Content-Type:[application/xml] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: successlogin successful ---- PASS: TestPostXMLStructSuccess (0.00s) +--- PASS: TestPostXMLStructSuccess (0.01s) === RUN TestPostXMLStructInvalidLogin resty_test.go:234: Method: POST resty_test.go:235: Path: /login @@ -1060,11 +1095,11 @@ resty_test.go:237: Content-Type: application/xml request_test.go:489: Result Error: &{"" "Invalid credentials"} resty_test.go:647: Response Status: 401 Unauthorized - resty_test.go:648: Response Time: 2.7671ms - resty_test.go:649: Response Headers: map[Content-Length:[120] Content-Type:[application/xml] Date:[Thu, 11 Jan 2024 11:37:02 GMT] Www-Authenticate:[Protected Realm]] + resty_test.go:648: Response Time: 2.634051ms + resty_test.go:649: Response Headers: map[Content-Length:[120] Content-Type:[application/xml] Date:[Thu, 11 Jan 2024 11:48:38 GMT] Www-Authenticate:[Protected Realm]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: unauthorizedInvalid credentials ---- PASS: TestPostXMLStructInvalidLogin (0.00s) +--- PASS: TestPostXMLStructInvalidLogin (0.01s) === RUN TestPostXMLStructInvalidResponseXml resty_test.go:234: Method: POST resty_test.go:235: Path: /login @@ -1072,8 +1107,8 @@ resty_test.go:237: Content-Type: application/xml request_test.go:507: Result Success: &{"" ""} resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 4.128073ms - resty_test.go:649: Response Headers: map[Content-Length:[106] Content-Type:[application/xml] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 3.613179ms + resty_test.go:649: Response Headers: map[Content-Length:[106] Content-Type:[application/xml] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: successlogin successful --- PASS: TestPostXMLStructInvalidResponseXml (0.01s) @@ -1086,11 +1121,11 @@ resty_test.go:435: Basic Auth: Basic bXl1c2VyOmJhc2ljYXV0aA== request_test.go:540: Result Success: &{"success" "login successful"} resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 30.190906ms - resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json; charset=utf-8] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 50.886677ms + resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:38 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } ---- PASS: TestRequestBasicAuth (0.03s) +--- PASS: TestRequestBasicAuth (0.05s) === RUN TestRequestBasicAuthFail resty_test.go:404: Method: POST resty_test.go:405: Path: /login @@ -1098,23 +1133,23 @@ resty_test.go:435: Basic Auth: Basic bXl1c2VyOmJhc2ljYXV0aDE= request_test.go:559: Result Error: &{"unauthorized" "Invalid credentials"} resty_test.go:647: Response Status: 401 Unauthorized - resty_test.go:648: Response Time: 19.92167ms - resty_test.go:649: Response Headers: map[Content-Length:[58] Content-Type:[application/json; charset=utf-8] Date:[Thu, 11 Jan 2024 11:37:02 GMT] Www-Authenticate:[Protected Realm]] + resty_test.go:648: Response Time: 41.599394ms + resty_test.go:649: Response Headers: map[Content-Length:[58] Content-Type:[application/json; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:38 GMT] Www-Authenticate:[Protected Realm]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "unauthorized", "message": "Invalid credentials" } ---- PASS: TestRequestBasicAuthFail (0.04s) +--- PASS: TestRequestBasicAuthFail (0.05s) === RUN TestRequestAuthToken resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF-Request ---- PASS: TestRequestAuthToken (0.02s) +--- PASS: TestRequestAuthToken (0.05s) === RUN TestRequestAuthScheme resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF-Request ---- PASS: TestRequestAuthScheme (0.02s) +--- PASS: TestRequestAuthScheme (0.05s) === RUN TestFormData resty_test.go:302: Method: POST resty_test.go:303: Path: /profile @@ -1123,13 +1158,13 @@ resty_test.go:311: LastName: M resty_test.go:312: City: Los Angeles resty_test.go:313: Zip Code: 00001 ---- PASS: TestFormData (0.00s) +--- PASS: TestFormData (0.01s) === RUN TestMultiValueFormData resty_test.go:302: Method: POST resty_test.go:303: Path: /search resty_test.go:304: Content-Type: resty_test.go:319: Received Form Encoded values: search_criteria=book&search_criteria=glass&search_criteria=pencil ---- PASS: TestMultiValueFormData (0.03s) +--- PASS: TestMultiValueFormData (0.00s) === RUN TestFormDataDisableWarn resty_test.go:302: Method: POST resty_test.go:303: Path: /profile @@ -1142,112 +1177,112 @@ === RUN TestMultiPartUploadFile resty_test.go:302: Method: POST resty_test.go:303: Path: /upload - resty_test.go:304: Content-Type: multipart/form-data; boundary=22555fd8b127f3a9267864c7eb63d14992dae29a07f69c0f84ed84cd7cd1 + resty_test.go:304: Content-Type: multipart/form-data; boundary=1b7db22908adc8922f84a555591933184fa60e20259d94cad62f4a4013e3 resty_test.go:327: FirstName: resty_test.go:328: LastName: resty_test.go:335: Name: test-img.png resty_test.go:336: Header: map[Content-Disposition:[form-data; name="profile_img"; filename="test-img.png"] Content-Type:[image/png]] - resty_test.go:340: Write name: test-img-1704973022.png ---- PASS: TestMultiPartUploadFile (0.09s) + resty_test.go:340: Write name: test-img-1704973718.png +--- PASS: TestMultiPartUploadFile (0.33s) === RUN TestMultiPartUploadFileError --- PASS: TestMultiPartUploadFileError (0.00s) === RUN TestMultiPartUploadFiles resty_test.go:302: Method: POST resty_test.go:303: Path: /upload - resty_test.go:304: Content-Type: multipart/form-data; boundary=eb0a168df9d9c9c7090dfa7239b14a99e8eb4e52e149092e992e9d43cc7e + resty_test.go:304: Content-Type: multipart/form-data; boundary=87a88859c17d22b4a45094b1077d05b7baacb28caed1139048bc14116d7d resty_test.go:327: FirstName: Jeevanandam resty_test.go:328: LastName: M - resty_test.go:335: Name: test-img.png - resty_test.go:336: Header: map[Content-Disposition:[form-data; name="profile_img"; filename="test-img.png"] Content-Type:[image/png]] - resty_test.go:340: Write name: test-img-1704973022.png resty_test.go:335: Name: text-file.txt resty_test.go:336: Header: map[Content-Disposition:[form-data; name="notes"; filename="text-file.txt"] Content-Type:[application/octet-stream]] - resty_test.go:340: Write name: text-file-1704973022.txt ---- PASS: TestMultiPartUploadFiles (0.16s) + resty_test.go:340: Write name: text-file-1704973719.txt + resty_test.go:335: Name: test-img.png + resty_test.go:336: Header: map[Content-Disposition:[form-data; name="profile_img"; filename="test-img.png"] Content-Type:[image/png]] + resty_test.go:340: Write name: test-img-1704973719.png +--- PASS: TestMultiPartUploadFiles (0.37s) === RUN TestMultiPartIoReaderFiles request_test.go:738: File Info: ParamName: test_param; FileName: test_file_name.jpg resty_test.go:302: Method: POST resty_test.go:303: Path: /upload - resty_test.go:304: Content-Type: multipart/form-data; boundary=021185bc992666356f1100d13ce9cd521e73ccb08c201e501a19334bbb63 + resty_test.go:304: Content-Type: multipart/form-data; boundary=54a90e6c51b6a0427023fbbbf5afbe3a6bfccd87e3a8470ae1628b621791 resty_test.go:327: FirstName: Jeevanandam resty_test.go:328: LastName: M - resty_test.go:335: Name: test-img.png - resty_test.go:336: Header: map[Content-Disposition:[form-data; name="profile_img"; filename="test-img.png"] Content-Type:[image/png]] - resty_test.go:340: Write name: test-img-1704973022.png resty_test.go:335: Name: text-file.txt resty_test.go:336: Header: map[Content-Disposition:[form-data; name="notes"; filename="text-file.txt"] Content-Type:[application/octet-stream]] - resty_test.go:340: Write name: text-file-1704973022.txt ---- PASS: TestMultiPartIoReaderFiles (0.10s) + resty_test.go:340: Write name: text-file-1704973719.txt + resty_test.go:335: Name: test-img.png + resty_test.go:336: Header: map[Content-Disposition:[form-data; name="profile_img"; filename="test-img.png"] Content-Type:[image/png]] + resty_test.go:340: Write name: test-img-1704973719.png +--- PASS: TestMultiPartIoReaderFiles (0.26s) === RUN TestMultiPartUploadFileNotOnGetOrDelete --- PASS: TestMultiPartUploadFileNotOnGetOrDelete (0.00s) === RUN TestMultiPartFormData resty_test.go:302: Method: POST resty_test.go:303: Path: /profile - resty_test.go:304: Content-Type: multipart/form-data; boundary=f0523e255a150f5194fe42215de04e6eaae5f01302a755c9d86193e2ea01 + resty_test.go:304: Content-Type: multipart/form-data; boundary=9fc550efa6d9f465012baeb64cd830cdd228a210eeaaa6edc865201a1ddd resty_test.go:310: FirstName: Jeevanandam resty_test.go:311: LastName: M resty_test.go:312: City: resty_test.go:313: Zip Code: 00001 ---- PASS: TestMultiPartFormData (0.00s) +--- PASS: TestMultiPartFormData (0.01s) === RUN TestMultiPartMultipartField resty_test.go:302: Method: POST resty_test.go:303: Path: /upload - resty_test.go:304: Content-Type: multipart/form-data; boundary=64553f124f249e0df83d6e323a9a0b5e3a486a1bef0afb3b927a621db84e + resty_test.go:304: Content-Type: multipart/form-data; boundary=5c35ae279d543ec6931db4d9fe44aeb6e4c78ce1cd5db55616b8e058354b resty_test.go:327: FirstName: Jeevanandam resty_test.go:328: LastName: M resty_test.go:335: Name: upload-file.json resty_test.go:336: Header: map[Content-Disposition:[form-data; name="uploadManifest"; filename="upload-file.json"] Content-Type:[application/json]] - resty_test.go:340: Write name: upload-file-1704973022.json ---- PASS: TestMultiPartMultipartField (0.00s) + resty_test.go:340: Write name: upload-file-1704973719.json +--- PASS: TestMultiPartMultipartField (0.01s) === RUN TestMultiPartMultipartFields resty_test.go:302: Method: POST resty_test.go:303: Path: /upload - resty_test.go:304: Content-Type: multipart/form-data; boundary=d762e172c635ebbaaa88e32ccf5ac638fce63d1fc47942cf79bce4ef3a27 + resty_test.go:304: Content-Type: multipart/form-data; boundary=79639f7e36da194bb1fa3d49b301d6ded602e6aecd172311eb2f1721f44f resty_test.go:327: FirstName: Jeevanandam resty_test.go:328: LastName: M resty_test.go:335: Name: upload-file-1.json resty_test.go:336: Header: map[Content-Disposition:[form-data; name="uploadManifest1"; filename="upload-file-1.json"] Content-Type:[application/json]] - resty_test.go:340: Write name: upload-file-1-1704973022.json + resty_test.go:340: Write name: upload-file-1-1704973719.json resty_test.go:335: Name: upload-file-2.json resty_test.go:336: Header: map[Content-Disposition:[form-data; name="uploadManifest2"; filename="upload-file-2.json"] Content-Type:[application/json]] - resty_test.go:340: Write name: upload-file-2-1704973022.json ---- PASS: TestMultiPartMultipartFields (0.00s) + resty_test.go:340: Write name: upload-file-2-1704973719.json +--- PASS: TestMultiPartMultipartFields (0.01s) === RUN TestGetWithCookie resty_test.go:41: Method: GET resty_test.go:42: Path: /mypage2 resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.018764ms - resty_test.go:649: Response Headers: map[Content-Length:[35] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 5.74602ms + resty_test.go:649: Response Headers: map[Content-Length:[35] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:39 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response from mypage2 ---- PASS: TestGetWithCookie (0.00s) +--- PASS: TestGetWithCookie (0.01s) === RUN TestGetWithCookies resty_test.go:41: Method: GET resty_test.go:42: Path: /mypage2 resty_test.go:41: Method: GET resty_test.go:42: Path: /mypage2 resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 417.18µs - resty_test.go:649: Response Headers: map[Content-Length:[35] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:37:02 GMT]] + resty_test.go:648: Response Time: 1.052337ms + resty_test.go:649: Response Headers: map[Content-Length:[35] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:39 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response from mypage2 ---- PASS: TestGetWithCookies (0.00s) +--- PASS: TestGetWithCookies (0.02s) === RUN TestPutPlainString resty_test.go:460: Method: PUT resty_test.go:461: Path: /plaintext ---- PASS: TestPutPlainString (0.01s) +--- PASS: TestPutPlainString (0.00s) === RUN TestPutJSONString resty_test.go:460: Method: PUT resty_test.go:461: Path: /json ---- PASS: TestPutJSONString (0.00s) +--- PASS: TestPutJSONString (0.01s) === RUN TestPutXMLString resty_test.go:460: Method: PUT resty_test.go:461: Path: /xml ---- PASS: TestPutXMLString (0.00s) +--- PASS: TestPutXMLString (0.01s) === RUN TestOnBeforeMiddleware resty_test.go:460: Method: PUT resty_test.go:461: Path: /plaintext ---- PASS: TestOnBeforeMiddleware (0.01s) +--- PASS: TestOnBeforeMiddleware (0.00s) === RUN TestHTTPAutoRedirectUpTo10 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-1 @@ -1269,7 +1304,7 @@ resty_test.go:532: Path: /redirect-9 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-10 ---- PASS: TestHTTPAutoRedirectUpTo10 (0.01s) +--- PASS: TestHTTPAutoRedirectUpTo10 (0.03s) === RUN TestHostCheckRedirectPolicy resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-host-check-1 @@ -1281,19 +1316,19 @@ resty_test.go:532: Path: /redirect-host-check-4 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-host-check-5 ---- PASS: TestHostCheckRedirectPolicy (0.00s) +--- PASS: TestHostCheckRedirectPolicy (0.01s) === RUN TestHeadMethod resty_test.go:41: Method: HEAD resty_test.go:42: Path: / ---- PASS: TestHeadMethod (0.01s) +--- PASS: TestHeadMethod (0.00s) === RUN TestOptionsMethod resty_test.go:460: Method: OPTIONS resty_test.go:461: Path: /options ---- PASS: TestOptionsMethod (0.00s) +--- PASS: TestOptionsMethod (0.01s) === RUN TestPatchMethod resty_test.go:460: Method: PATCH resty_test.go:461: Path: /patch ---- PASS: TestPatchMethod (0.00s) +--- PASS: TestPatchMethod (0.01s) === RUN TestSendMethod === RUN TestSendMethod/send-get === CONT TestSendMethod @@ -1311,16 +1346,16 @@ === CONT TestSendMethod resty_test.go:460: Method: PUT resty_test.go:461: Path: /plaintext ---- PASS: TestSendMethod (0.01s) - --- PASS: TestSendMethod/send-get (0.01s) +--- PASS: TestSendMethod (0.02s) + --- PASS: TestSendMethod/send-get (0.00s) --- PASS: TestSendMethod/send-options (0.00s) - --- PASS: TestSendMethod/send-patch (0.00s) - --- PASS: TestSendMethod/send-put (0.00s) + --- PASS: TestSendMethod/send-patch (0.01s) + --- PASS: TestSendMethod/send-put (0.01s) === RUN TestRawFileUploadByBody resty_test.go:302: Method: PUT resty_test.go:303: Path: /raw-upload resty_test.go:304: Content-Type: image/png ---- PASS: TestRawFileUploadByBody (0.54s) +--- PASS: TestRawFileUploadByBody (0.56s) === RUN TestProxySetting --- PASS: TestProxySetting (0.00s) === RUN TestGetClient @@ -1334,11 +1369,11 @@ resty_test.go:237: Content-Type: application/json request_test.go:1207: Result Success: &{"success" "login successful"} resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.306457ms - resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:37:03 GMT]] + resty_test.go:648: Response Time: 9.856326ms + resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:48:40 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } ---- PASS: TestDetectContentTypeForPointer (0.00s) +--- PASS: TestDetectContentTypeForPointer (0.01s) === RUN TestDetectContentTypeForPointerWithSlice resty_test.go:234: Method: POST resty_test.go:235: Path: /users @@ -1346,8 +1381,8 @@ resty_test.go:237: Content-Type: application/json request_test.go:1235: Result Success: "{ \"message\": \"Accepted\" }" resty_test.go:647: Response Status: 202 Accepted - resty_test.go:648: Response Time: 8.648648ms - resty_test.go:649: Response Headers: map[Content-Length:[25] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:37:03 GMT]] + resty_test.go:648: Response Time: 5.780103ms + resty_test.go:649: Response Headers: map[Content-Length:[25] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:48:40 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "message": "Accepted" } --- PASS: TestDetectContentTypeForPointerWithSlice (0.01s) @@ -1358,11 +1393,11 @@ resty_test.go:237: Content-Type: application/json request_test.go:1260: Result Success: "{ \"message\": \"Accepted\" }" resty_test.go:647: Response Status: 202 Accepted - resty_test.go:648: Response Time: 3.976407ms - resty_test.go:649: Response Headers: map[Content-Length:[25] Content-Type:[application/json; charset=utf-8] Date:[Thu, 11 Jan 2024 11:37:03 GMT]] + resty_test.go:648: Response Time: 11.847124ms + resty_test.go:649: Response Headers: map[Content-Length:[25] Content-Type:[application/json; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:40 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "message": "Accepted" } ---- PASS: TestDetectContentTypeForPointerWithSliceMap (0.00s) +--- PASS: TestDetectContentTypeForPointerWithSliceMap (0.02s) === RUN TestDetectContentTypeForSlice resty_test.go:234: Method: POST resty_test.go:235: Path: /users @@ -1370,11 +1405,11 @@ resty_test.go:237: Content-Type: application/json request_test.go:1282: Result Success: "{ \"message\": \"Accepted\" }" resty_test.go:647: Response Status: 202 Accepted - resty_test.go:648: Response Time: 1.17345ms - resty_test.go:649: Response Headers: map[Content-Length:[25] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:37:03 GMT]] + resty_test.go:648: Response Time: 10.882996ms + resty_test.go:649: Response Headers: map[Content-Length:[25] Content-Type:[application/json] Date:[Thu, 11 Jan 2024 11:48:40 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "message": "Accepted" } ---- PASS: TestDetectContentTypeForSlice (0.00s) +--- PASS: TestDetectContentTypeForSlice (0.01s) === RUN TestMultiParamsQueryString resty_test.go:41: Method: GET resty_test.go:42: Path: / @@ -1382,64 +1417,64 @@ resty_test.go:42: Path: / resty_test.go:41: Method: GET resty_test.go:42: Path: / ---- PASS: TestMultiParamsQueryString (0.01s) +--- PASS: TestMultiParamsQueryString (0.02s) === RUN TestSetQueryStringTypical resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:41: Method: GET resty_test.go:42: Path: / ---- PASS: TestSetQueryStringTypical (0.01s) +--- PASS: TestSetQueryStringTypical (0.02s) === RUN TestOutputFileWithBaseDirAndRelativePath resty_test.go:41: Method: GET resty_test.go:42: Path: /my-image.png ---- PASS: TestOutputFileWithBaseDirAndRelativePath (0.05s) +--- PASS: TestOutputFileWithBaseDirAndRelativePath (0.08s) === RUN TestOutputFileWithBaseDirError --- PASS: TestOutputFileWithBaseDirError (0.00s) === RUN TestOutputPathDirNotExists resty_test.go:41: Method: GET resty_test.go:42: Path: /my-image.png ---- PASS: TestOutputPathDirNotExists (0.04s) +--- PASS: TestOutputPathDirNotExists (0.13s) === RUN TestOutputFileAbsPath resty_test.go:41: Method: GET resty_test.go:42: Path: /my-image.png ---- PASS: TestOutputFileAbsPath (0.03s) +--- PASS: TestOutputFileAbsPath (0.08s) === RUN TestContextInternal resty_test.go:41: Method: GET resty_test.go:42: Path: / ---- PASS: TestContextInternal (0.00s) +--- PASS: TestContextInternal (0.01s) === RUN TestSRV ---- PASS: TestSRV (0.00s) +--- PASS: TestSRV (0.01s) === RUN TestSRVInvalidService ---- PASS: TestSRVInvalidService (0.00s) +--- PASS: TestSRVInvalidService (0.01s) === RUN TestRequestDoNotParseResponse resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:41: Method: GET resty_test.go:42: Path: / ---- PASS: TestRequestDoNotParseResponse (0.00s) +--- PASS: TestRequestDoNotParseResponse (0.01s) === RUN TestRequestExpectContentTypeTest resty_test.go:460: Method: GET resty_test.go:461: Path: /json-no-set ---- PASS: TestRequestExpectContentTypeTest (0.00s) +--- PASS: TestRequestExpectContentTypeTest (0.01s) === RUN TestGetPathParamAndPathParams resty_test.go:41: Method: GET resty_test.go:42: Path: /v1/users/sample@sample.com/100002/details resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 2.467309ms - resty_test.go:649: Response Headers: map[Content-Length:[76] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:37:03 GMT]] + resty_test.go:648: Response Time: 13.78759ms + resty_test.go:649: Response Headers: map[Content-Length:[76] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:40 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGetPathParams: text response: /v1/users/sample@sample.com/100002/details ---- PASS: TestGetPathParamAndPathParams (0.00s) +--- PASS: TestGetPathParamAndPathParams (0.02s) === RUN TestReportMethodSupportsPayload resty_test.go:460: Method: REPORT resty_test.go:461: Path: /report ---- PASS: TestReportMethodSupportsPayload (0.00s) +--- PASS: TestReportMethodSupportsPayload (0.01s) === RUN TestRequestQueryStringOrder resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 6.251993ms - resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:37:03 GMT]] + resty_test.go:648: Response Time: 11.335373ms + resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:40 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response --- PASS: TestRequestQueryStringOrder (0.01s) @@ -1448,7 +1483,7 @@ resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF ---- PASS: TestRequestOverridesClientAuthorizationHeader (0.03s) +--- PASS: TestRequestOverridesClientAuthorizationHeader (0.17s) === RUN TestRequestFileUploadAsReader resty_test.go:367: Method: POST resty_test.go:368: Path: /upload @@ -1456,25 +1491,25 @@ resty_test.go:367: Method: POST resty_test.go:368: Path: /upload resty_test.go:369: Content-Type: image/png ---- PASS: TestRequestFileUploadAsReader (0.10s) +--- PASS: TestRequestFileUploadAsReader (0.24s) === RUN TestHostHeaderOverride resty_test.go:41: Method: GET resty_test.go:42: Path: /host-header resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.315977ms - resty_test.go:649: Response Headers: map[Content-Length:[10] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:37:03 GMT]] + resty_test.go:648: Response Time: 2.535467ms + resty_test.go:649: Response Headers: map[Content-Length:[10] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:41 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: myhostname ---- PASS: TestHostHeaderOverride (0.00s) +--- PASS: TestHostHeaderOverride (0.01s) === RUN TestPathParamURLInput resty_test.go:41: Method: GET resty_test.go:42: Path: /v1/users/sample@sample.com/100002/https://example.com resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.018984ms - resty_test.go:649: Response Headers: map[Content-Length:[96] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:37:03 GMT]] + resty_test.go:648: Response Time: 8.717655ms + resty_test.go:649: Response Headers: map[Content-Length:[96] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:41 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestPathParamURLInput: text response: /v1/users/sample@sample.com/100002/https:%2F%2Fexample.com ---- PASS: TestPathParamURLInput (0.00s) +--- PASS: TestPathParamURLInput (0.01s) === RUN TestTraceInfo resty_test.go:41: Method: GET resty_test.go:42: Path: / @@ -1492,7 +1527,7 @@ resty_test.go:42: Path: /long-text resty_test.go:41: Method: GET resty_test.go:42: Path: /long-json ---- PASS: TestTraceInfo (0.01s) +--- PASS: TestTraceInfo (0.05s) === RUN TestTraceInfoWithoutEnableTrace resty_test.go:41: Method: GET resty_test.go:42: Path: / @@ -1504,14 +1539,14 @@ resty_test.go:42: Path: /long-json --- PASS: TestTraceInfoWithoutEnableTrace (0.01s) === RUN TestTraceInfoOnTimeout ---- PASS: TestTraceInfoOnTimeout (0.00s) +--- PASS: TestTraceInfoOnTimeout (0.02s) === RUN TestDebugLoggerRequestBodyTooLarge resty_test.go:367: Method: POST resty_test.go:368: Path: /upload - resty_test.go:369: Content-Type: multipart/form-data; boundary=6a734147b466dc8d898457531bb53bebc34ef403183216af5fa530c84749 + resty_test.go:369: Content-Type: multipart/form-data; boundary=b7fc467499b8f0441a54b339e29d16c7a2f61d98f1c1bc75434444edfa7a resty_test.go:367: Method: POST resty_test.go:368: Path: /upload - resty_test.go:369: Content-Type: multipart/form-data; boundary=4c9b7d3fd6952e5b3709500dc253c301f74ce5ac9e107173414d2d26894d + resty_test.go:369: Content-Type: multipart/form-data; boundary=3cc097e6e05c1bb0ca4fd63e5186aee0d2ea64b0b47b19d2ee69052d2493 resty_test.go:302: Method: POST resty_test.go:303: Path: /profile resty_test.go:304: Content-Type: application/x-www-form-urlencoded @@ -1540,7 +1575,7 @@ resty_test.go:311: LastName: resty_test.go:312: City: resty_test.go:313: Zip Code: ---- PASS: TestDebugLoggerRequestBodyTooLarge (0.08s) +--- PASS: TestDebugLoggerRequestBodyTooLarge (0.20s) === RUN TestPostMapTemporaryRedirect resty_test.go:234: Method: POST resty_test.go:235: Path: /redirect @@ -1550,35 +1585,35 @@ resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json ---- PASS: TestPostMapTemporaryRedirect (0.01s) +--- PASS: TestPostMapTemporaryRedirect (0.02s) === RUN TestPostBodyError --- PASS: TestPostBodyError (0.00s) === RUN TestBackoffSuccess ---- PASS: TestBackoffSuccess (0.22s) +--- PASS: TestBackoffSuccess (0.23s) === RUN TestBackoffTenAttemptsSuccess --- PASS: TestBackoffTenAttemptsSuccess (0.00s) === RUN TestConditionalBackoffCondition ---- PASS: TestConditionalBackoffCondition (0.21s) +--- PASS: TestConditionalBackoffCondition (0.22s) === RUN TestConditionalBackoffConditionNonExecution --- PASS: TestConditionalBackoffConditionNonExecution (0.00s) === RUN TestConditionalGet resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 4.612807ms - resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:37:04 GMT]] + resty_test.go:648: Response Time: 2.749843ms + resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:42 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response ---- PASS: TestConditionalGet (0.01s) +--- PASS: TestConditionalGet (0.00s) === RUN TestConditionalGetDefaultClient resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:647: Response Status: 200 OK - resty_test.go:648: Response Time: 1.048182ms - resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:37:04 GMT]] + resty_test.go:648: Response Time: 8.70278ms + resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 11 Jan 2024 11:48:42 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response ---- PASS: TestConditionalGetDefaultClient (0.00s) +--- PASS: TestConditionalGetDefaultClient (0.01s) === RUN TestClientRetryGet resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrycount-test @@ -1588,7 +1623,7 @@ resty_test.go:42: Path: /set-retrycount-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrycount-test ---- PASS: TestClientRetryGet (15.60s) +--- PASS: TestClientRetryGet (15.61s) === RUN TestClientRetryWait resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test @@ -1616,7 +1651,7 @@ resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test ---- PASS: TestClientRetryWaitMaxInfinite (18.04s) +--- PASS: TestClientRetryWaitMaxInfinite (18.02s) === RUN TestClientRetryWaitCallbackError resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test @@ -1634,7 +1669,6 @@ resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test - retry_test.go:328: Client has slept 5.006396 seconds before retry 3 --- PASS: TestClientRetryWaitCallback (30.02s) === RUN TestClientRetryWaitCallbackTooShort resty_test.go:41: Method: GET @@ -1649,7 +1683,12 @@ resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test ---- PASS: TestClientRetryWaitCallbackTooShort (18.02s) + retry_test.go:376: Client has slept 3.006132 seconds before retry 1 + retry_test.go:376: Client has slept 3.007967 seconds before retry 2 + retry_test.go:376: Client has slept 3.007545 seconds before retry 3 + retry_test.go:376: Client has slept 3.007977 seconds before retry 4 + retry_test.go:376: Client has slept 3.016422 seconds before retry 5 +--- PASS: TestClientRetryWaitCallbackTooShort (18.05s) === RUN TestClientRetryWaitCallbackTooLong resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test @@ -1663,8 +1702,8 @@ resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test - retry_test.go:424: Client has slept 3.005675 seconds before retry 2 ---- PASS: TestClientRetryWaitCallbackTooLong (18.02s) + retry_test.go:424: Client has slept 3.015699 seconds before retry 2 +--- PASS: TestClientRetryWaitCallbackTooLong (18.04s) === RUN TestClientRetryWaitCallbackSwitchToDefault resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test @@ -1678,7 +1717,8 @@ resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test ---- PASS: TestClientRetryWaitCallbackSwitchToDefault (9.73s) + retry_test.go:480: Client has slept 1.005217 seconds before retry 1 +--- FAIL: TestClientRetryWaitCallbackSwitchToDefault (9.74s) === RUN TestClientRetryCancel resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test @@ -1705,13 +1745,13 @@ resty_test.go:237: Content-Type: application/json resty_test.go:259: Got query param: status=500 so we're returning the post body as response and a 500 status code. body: [{"user1":{"FirstName":"firstname1","LastName":"lastname1","ZipCode":"10001"}}] retry_test.go:552: Got response body: [{"user1":{"FirstName":"firstname1","LastName":"lastname1","ZipCode":"10001"}}] ---- PASS: TestClientRetryPost (1.43s) +--- PASS: TestClientRetryPost (1.42s) === RUN TestClientRetryErrorRecover resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retry-error-recover resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retry-error-recover ---- PASS: TestClientRetryErrorRecover (0.11s) +--- PASS: TestClientRetryErrorRecover (0.12s) === RUN TestClientRetryCount resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrycount-test @@ -1722,40 +1762,24 @@ --- PASS: TestIsJSONType (0.00s) === RUN TestIsXMLType --- PASS: TestIsXMLType (0.00s) -PASS -ok github.com/go-resty/resty 173.154s - create-stamp debian/debhelper-build-stamp - dh_testroot -O--builddirectory=_build -O--buildsystem=golang - dh_prep -O--builddirectory=_build -O--buildsystem=golang - dh_auto_install -O--builddirectory=_build -O--buildsystem=golang - dh_installdocs -O--builddirectory=_build -O--buildsystem=golang - dh_installchangelogs -O--builddirectory=_build -O--buildsystem=golang - dh_installsystemduser -O--builddirectory=_build -O--buildsystem=golang - dh_perl -O--builddirectory=_build -O--buildsystem=golang - dh_link -O--builddirectory=_build -O--buildsystem=golang - dh_strip_nondeterminism -O--builddirectory=_build -O--buildsystem=golang - dh_compress -O--builddirectory=_build -O--buildsystem=golang - dh_fixperms -O--builddirectory=_build -O--buildsystem=golang - dh_missing -O--builddirectory=_build -O--buildsystem=golang - dh_installdeb -O--builddirectory=_build -O--buildsystem=golang - dh_golang -O--builddirectory=_build -O--buildsystem=golang - dh_gencontrol -O--builddirectory=_build -O--buildsystem=golang - dh_md5sums -O--builddirectory=_build -O--buildsystem=golang - dh_builddeb -O--builddirectory=_build -O--buildsystem=golang -dpkg-deb: building package 'golang-github-go-resty-resty-dev' in '../golang-github-go-resty-resty-dev_2.4.0-1_all.deb'. - dpkg-genbuildinfo --build=binary - dpkg-genchanges --build=binary >../golang-github-go-resty-resty_2.4.0-1_armhf.changes -dpkg-genchanges: info: binary-only upload (no source code included) - dpkg-source --after-build . -dpkg-buildpackage: info: binary-only upload (no source included) -dpkg-genchanges: info: including full source code in upload +FAIL +FAIL github.com/go-resty/resty 175.791s +FAIL +dh_auto_test: error: cd _build && go test -vet=off -v -p 6 github.com/go-resty/resty returned exit code 1 +make: *** [debian/rules:6: binary] Error 25 +dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 I: copying local configuration +E: Failed autobuilding of package +I: user script /srv/workspace/pbuilder/14070/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Thu Jan 11 11:51:16 UTC 2024 +Filesystem Size Used Avail Use% Mounted on +tmpfs 1.9G 0 1.9G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/14070/tmp/hooks/C01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/13356 and its subdirectories -I: Current time: Wed Jan 10 23:40:05 -12 2024 -I: pbuilder-time-stamp: 1704973205 +I: removing directory /srv/workspace/pbuilder/14070 and its subdirectories