public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/golang-github-frankban-quicktest] rawhide: Update to 1.14.6 and fix tests
@ 2026-07-31  8:46 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-07-31  8:46 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/golang-github-frankban-quicktest
            Branch : rawhide
            Commit : 78352e6f64f3853422ad510a1d26f4ed45bccd5e
            Author : Alejandro Sáez <asm@redhat.com>
            Date   : 2026-07-30T18:54:55+02:00
            Stats  : +44/-2 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/golang-github-frankban-quicktest/c/78352e6f64f3853422ad510a1d26f4ed45bccd5e?branch=rawhide

            Log:
            Update to 1.14.6 and fix tests

Resolves: rhbz#2144248
Resolves: rhbz#2503956

---
diff --git a/.gitignore b/.gitignore
index 40dee25..0eb2c76 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
 /quicktest-1.11.3.tar.gz
 /quicktest-1.14.2.tar.gz
 /quicktest-1.14.3.tar.gz
+/quicktest-1.14.6.tar.gz

diff --git a/fix-go127-jsonv2-compat.patch b/fix-go127-jsonv2-compat.patch
new file mode 100644
index 0000000..2165cba
--- /dev/null
+++ b/fix-go127-jsonv2-compat.patch
@@ -0,0 +1,39 @@
+From 22f54b4ab396019f1792b4b8942e33bbd69e2aae Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Alejandro=20S=C3=A1ez?= <asm@redhat.com>
+Date: Fri, 24 Jul 2026 20:04:52 +0200
+Subject: [PATCH] Update tests for Go 1.27 json changes
+
+---
+ checker_test.go | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/checker_test.go b/checker_test.go
+index c869a62..48bcbe1 100644
+--- a/checker_test.go
++++ b/checker_test.go
+@@ -2980,11 +2980,11 @@ want:
+ 	},
+ 	expectedCheckFailure: `
+ error:
+-  bad check: cannot marshal expected contents: json: error calling MarshalJSON for type quicktest_test.jsonErrorMarshaler: qt json marshal error
++  bad check: cannot marshal expected contents: json: error calling MarshalJSON for type *quicktest_test.jsonErrorMarshaler: qt json marshal error
+ `,
+ 	expectedNegateFailure: `
+ error:
+-  bad check: cannot marshal expected contents: json: error calling MarshalJSON for type quicktest_test.jsonErrorMarshaler: qt json marshal error
++  bad check: cannot marshal expected contents: json: error calling MarshalJSON for type *quicktest_test.jsonErrorMarshaler: qt json marshal error
+ `,
+ }, {
+ 	about:   "JSONEquals with []byte",
+@@ -3010,7 +3010,7 @@ error:
+ got:
+   []uint8("null")
+ want:
+-  json.RawMessage("null")
++  s"null"
+ `,
+ }, {
+ 	about:   "JSONEquals with bad type",
+-- 
+2.55.0
+

diff --git a/golang-github-frankban-quicktest.spec b/golang-github-frankban-quicktest.spec
index 6335026..4ece3c9 100644
--- a/golang-github-frankban-quicktest.spec
+++ b/golang-github-frankban-quicktest.spec
@@ -4,7 +4,7 @@
 
 # https://github.com/frankban/quicktest
 %global goipath         github.com/frankban/quicktest
-Version:                1.14.3
+Version:                1.14.6
 
 %gometa
 
@@ -21,6 +21,7 @@ Summary:        Quick helpers for testing Go applications
 License:        MIT
 URL:            %{gourl}
 Source0:        %{gosource}
+Patch0:         fix-go127-jsonv2-compat.patch
 
 %description
 %{common_description}
@@ -29,6 +30,7 @@ Source0:        %{gosource}
 
 %prep
 %goprep
+%autopatch -p1
 
 %generate_buildrequires
 %go_generate_buildrequires

diff --git a/sources b/sources
index aa37a64..06969fb 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (quicktest-1.14.3.tar.gz) = 7096b136c75be67cd1a4e4b341e217b853a764df3ec54380e026bf03a5e83504ff20fe0ed91a6e089abc718b4410aa4d5e5e66512ed8fdf9d1628d973e7af24b
+SHA512 (quicktest-1.14.6.tar.gz) = 0c9c41cd0ef5c4ba000c2fb67d610d5bc363a4284b22af6ff21a6b02affce67756a48f7e88d195fc6cce81fb2d873ae1069fd8403fab7a4834d06270a3a49953

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-31  8:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-31  8:46 [rpms/golang-github-frankban-quicktest] rawhide: Update to 1.14.6 and fix tests 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox