Skip to content

Commit 4d7e7ac

Browse files
MikeDombojunfuchen99
authored andcommitted
ci: set AWS_REGION in flaky test finder (#1563)
(cherry picked from commit 13bbcae)
1 parent 12e9a55 commit 4d7e7ac

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/flakeFinder.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
pip3 -q install agithub &&
2020
python3 .github/scripts/flake.py --cmd "mvn -ntp -U verify" -i 10 -ff --token "${{ github.token }}"
2121
--out-dir "failed_tests/"
22+
env:
23+
AWS_REGION: us-west-2
2224
- name: Upload Errors
2325
uses: actions/[email protected]
2426
with:

src/test/java/com/aws/greengrass/lifecyclemanager/LogManagerHelperTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void GIVEN_mock_service_logger_WHEN_file_size_limit_reached_THEN_rollover() thro
165165
logRandomMessages(greengrassLogger, 525, LogFormat.TEXT);
166166
// Rollover is guarded by ch.qos.logback.core.util.SimpleInvocationGate so that it's not invoked too soon/often
167167
// This is the minimum delay since startup for it to allow log rollover.
168-
Thread.sleep(SimpleInvocationGate.DEFAULT_INCREMENT);
168+
Thread.sleep(SimpleInvocationGate.DEFAULT_INCREMENT.getMilliseconds());
169169
componentLogger.atInfo().log(); // log once more to trigger roll over
170170
greengrassLogger.atInfo().log(); // log once more to trigger roll over
171171

0 commit comments

Comments
 (0)