From 73461645ee27901d477a0283d77bac017b450abb Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Fri, 7 Feb 2025 12:20:54 -0800 Subject: [PATCH 1/2] Fix flaky test. Signed-off-by: Yury-Fridlyand --- go/integTest/shared_commands_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/integTest/shared_commands_test.go b/go/integTest/shared_commands_test.go index 927ec7478a..d3317af069 100644 --- a/go/integTest/shared_commands_test.go +++ b/go/integTest/shared_commands_test.go @@ -6579,7 +6579,7 @@ func (suite *GlideTestSuite) TestObjectIdleTime() { time.Sleep(time.Duration(sleepSec) * time.Second) resultIdleTime, err := defaultClient.ObjectIdleTime(key) assert.Nil(t, err) - assert.GreaterOrEqual(t, resultIdleTime.Value(), sleepSec) + assert.GreaterOrEqual(t, resultIdleTime.Value(), sleepSec - 1) }) } From 7ebf48123b68b9b4e2447e47c17de70724df58e3 Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Mon, 10 Feb 2025 08:06:35 -0800 Subject: [PATCH 2/2] lint Signed-off-by: Yury-Fridlyand --- go/integTest/shared_commands_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/integTest/shared_commands_test.go b/go/integTest/shared_commands_test.go index d3317af069..84896557f6 100644 --- a/go/integTest/shared_commands_test.go +++ b/go/integTest/shared_commands_test.go @@ -6579,7 +6579,7 @@ func (suite *GlideTestSuite) TestObjectIdleTime() { time.Sleep(time.Duration(sleepSec) * time.Second) resultIdleTime, err := defaultClient.ObjectIdleTime(key) assert.Nil(t, err) - assert.GreaterOrEqual(t, resultIdleTime.Value(), sleepSec - 1) + assert.GreaterOrEqual(t, resultIdleTime.Value(), sleepSec-1) }) }