aboutsummaryrefslogtreecommitdiff
path: root/cmd/dendrite-upgrade-tests/main.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-11-10 10:16:56 +0000
committerNeil Alexander <neilalexander@users.noreply.github.com>2022-11-10 10:16:56 +0000
commitefa50253f68f8ec1c6a9f4a8d82b329512027b00 (patch)
tree0a85f54954392dbd495e0b48c423fe688b4d91f1 /cmd/dendrite-upgrade-tests/main.go
parent503d9c7586d7c5ca91cdb78631553256628861cd (diff)
Fix lint error
Diffstat (limited to 'cmd/dendrite-upgrade-tests/main.go')
-rw-r--r--cmd/dendrite-upgrade-tests/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/dendrite-upgrade-tests/main.go b/cmd/dendrite-upgrade-tests/main.go
index 6630a062..131ce4af 100644
--- a/cmd/dendrite-upgrade-tests/main.go
+++ b/cmd/dendrite-upgrade-tests/main.go
@@ -367,7 +367,8 @@ func runImage(dockerClient *client.Client, volumeName, version, imageID string)
// hit /versions to check it is up
var lastErr error
for i := 0; i < 500; i++ {
- res, err := http.Get(versionsURL)
+ var res *http.Response
+ res, err = http.Get(versionsURL)
if err != nil {
lastErr = fmt.Errorf("GET %s => error: %s", versionsURL, err)
time.Sleep(50 * time.Millisecond)