Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-lsembera committed Jul 19, 2024
1 parent f637bc7 commit 4cf21b3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import static net.snowflake.ingest.utils.ParameterProvider.BDEC_PARQUET_COMPRESSION_ALGORITHM;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.mockito.Mockito.atLeastOnce;

import java.math.BigDecimal;
import java.math.BigInteger;
Expand Down Expand Up @@ -187,7 +188,7 @@ public void testSimpleIngest() throws Exception {
// verify expected request sent to server
String[] expectedPayloadParams = {"request_id", "blobs", "role", "blob_stats"};
for (String expectedParam : expectedPayloadParams) {
Mockito.verify(requestBuilder)
Mockito.verify(requestBuilder, atLeastOnce())
.generateStreamingIngestPostRequest(
ArgumentMatchers.contains(expectedParam),
ArgumentMatchers.refEq(REGISTER_BLOB_ENDPOINT),
Expand Down

0 comments on commit 4cf21b3

Please sign in to comment.