diff --git a/src/test/java/net/snowflake/ingest/streaming/internal/InternalStageTest.java b/src/test/java/net/snowflake/ingest/streaming/internal/InternalStageTest.java index 150ec566a..3baac0058 100644 --- a/src/test/java/net/snowflake/ingest/streaming/internal/InternalStageTest.java +++ b/src/test/java/net/snowflake/ingest/streaming/internal/InternalStageTest.java @@ -488,7 +488,7 @@ public void testRefreshSnowflakeMetadataSynchronized() throws Exception { } }); - workers.awaitTermination(150, TimeUnit.MILLISECONDS); + Assert.assertTrue(workers.awaitTermination(1, TimeUnit.SECONDS)); Mockito.verify(mockClient).execute(Mockito.any()); }