Skip to content

Commit 48bb5bf

Browse files
authored
cloudwatch: fix flaxy test (#3941)
Error: Not equal: expected: []string{"test_message_2"} actual : []string{}
1 parent 1a4de19 commit 48bb5bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/acquisition/modules/cloudwatch/cloudwatch_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,10 @@ func (s *CloudwatchSuite) TestOneShotAcquisition() {
585585
},
586586
})
587587
require.NoError(t, err)
588+
589+
// prevent flaky test due to slow CI
590+
end := time.Now().UTC().Add(5 * time.Second)
591+
cw.Config.EndTime = &end
588592
},
589593
expectedResMessages: []string{"test_message_2"},
590594
},

0 commit comments

Comments
 (0)