Skip to content

Commit d226a94

Browse files
authored
chore(deps): downgrade Go to 1.23 (#13)
1 parent 4c1cf99 commit d226a94

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

benchmark_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ func benchmarkScan[T dst](b *testing.B, cache bool) {
1616
columns := t.columns()
1717
s := mockScanner{values: t.values()}
1818

19-
for b.Loop() {
19+
b.ResetTimer()
20+
b.ReportAllocs()
21+
// TODO: use b.Loop() instead when Go 1.24 becomes oldstable.
22+
for range b.N {
2023
_, _ = scan[T](&s, columns)
2124
}
22-
b.ReportAllocs()
2325
}
2426

2527
type dst interface {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module go-simpler.org/queries
22

3-
go 1.24
3+
go 1.23

go.work

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
go 1.24.1
1+
go 1.23
22

33
use (
44
.

tests/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module tests
22

3-
go 1.24.1
3+
go 1.23
44

55
require (
66
github.com/go-sql-driver/mysql v1.9.0

tests/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var TableUsers = []User{
3535
}
3636

3737
func TestIntegration(t *testing.T) {
38-
ctx := t.Context()
38+
ctx := context.Background()
3939

4040
for name, database := range DBs {
4141
var execCalls int

0 commit comments

Comments
 (0)