-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Fix Java GCP-IO Direct job #34019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Java GCP-IO Direct job #34019
Changes from all commits
182b049
39b8440
31ee2ac
e51eea3
2f16a13
1e695b4
fd4ad9c
1d729c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,6 @@ | |
| package org.apache.beam.sdk.io.gcp.datastore; | ||
|
|
||
| import static org.junit.Assert.assertThrows; | ||
| import static org.mockito.Mockito.verify; | ||
|
|
||
| import java.util.Map; | ||
| import java.util.UUID; | ||
|
|
@@ -50,7 +49,7 @@ public class RampupThrottlingFnTest { | |
| @Mock private Counter mockCounter; | ||
| private final Sleeper mockSleeper = | ||
| millis -> { | ||
| verify(mockCounter).inc(millis); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. would you mind explaining a little bit how this fixed the flaky test
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| mockCounter.inc(millis); | ||
| throw new RampupDelayException(); | ||
| }; | ||
| private DoFnTester<String, String> rampupThrottlingFnTester; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.