summaryrefslogtreecommitdiff
path: root/testrig/db.go
diff options
context:
space:
mode:
authorLibravatar Daniele Sluijters <daenney@users.noreply.github.com>2022-12-04 14:20:41 +0100
committerLibravatar GitHub <noreply@github.com>2022-12-04 14:20:41 +0100
commit847e7c7c3a1f18eda13004eca64d2606bde54d33 (patch)
tree776bf112f12f010162d240d60f0b1348769bf34a /testrig/db.go
parent[performance]: make s3 urls cacheable (#1194) (diff)
downloadgotosocial-847e7c7c3a1f18eda13004eca64d2606bde54d33.tar.xz
[chore] Fix a few possible cases of int truncation (#1207)
This fixes a couple of cases where due to int being platform dependent a value could get truncated if running on 32bits.
Diffstat (limited to 'testrig/db.go')
-rw-r--r--testrig/db.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/testrig/db.go b/testrig/db.go
index 83f575a02..6670b91db 100644
--- a/testrig/db.go
+++ b/testrig/db.go
@@ -83,7 +83,7 @@ func NewTestDB() db.DB {
}
if alternateDBPort := os.Getenv("GTS_DB_PORT"); alternateDBPort != "" {
- port, err := strconv.ParseInt(alternateDBPort, 10, 64)
+ port, err := strconv.ParseUint(alternateDBPort, 10, 16)
if err != nil {
panic(err)
}