From 56ea4dd65e01f13caf922ae2a43c9b87219d8377 Mon Sep 17 00:00:00 2001 From: ani1311 <31389826+ani1311@users.noreply.github.com> Date: Wed, 12 Jun 2024 08:15:50 -0700 Subject: [PATCH] Upgrade go to 1.22.4 (#63) --- app_test.go | 6 +++--- go.mod | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app_test.go b/app_test.go index 0612132..92fc915 100644 --- a/app_test.go +++ b/app_test.go @@ -45,7 +45,7 @@ func TestApp_singleBurst_Success(t *testing.T) { startTime := time.Now() count := 10 - for i := 0; i < count; i++ { + for range count { app.wg.Add(1) app.slackQueue <- SlackPostMessageRequest{ Channel: "mockChannel", @@ -89,7 +89,7 @@ func TestApp_MultiBurst_Success(t *testing.T) { startTime := time.Now() count := 20 - for i := 0; i < count; i++ { + for range count { app.wg.Add(1) app.slackQueue <- SlackPostMessageRequest{ Channel: "mockChannel", @@ -133,7 +133,7 @@ func TestApp_TestSlackRequestRate(t *testing.T) { startTime := time.Now() count := 20 - for i := 0; i < count; i++ { + for range count { app.wg.Add(1) app.slackQueue <- SlackPostMessageRequest{ Channel: "mockChannel", diff --git a/go.mod b/go.mod index 945c817..ec8e9a2 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module fortio.org/slack-proxy -go 1.21 +go 1.22.4 require ( fortio.org/assert v1.2.1