File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2121import org .assertj .core .api .Assertions ;
2222import org .junit .jupiter .api .BeforeEach ;
2323import org .junit .jupiter .api .Test ;
24- import org .mockito .Mockito ;
2524
2625import java .io .IOException ;
2726import java .util .ArrayList ;
4847import static org .apache .hadoop .fs .azurebfs .constants .ConfigurationKeys .FS_AZURE_WRITE_CPU_MONITORING_INTERVAL_MILLIS ;
4948import static org .apache .hadoop .fs .azurebfs .constants .ConfigurationKeys .FS_AZURE_WRITE_DYNAMIC_THREADPOOL_ENABLEMENT ;
5049import static org .apache .hadoop .fs .azurebfs .constants .ConfigurationKeys .FS_AZURE_WRITE_LOW_CPU_THRESHOLD_PERCENT ;
50+ import static org .apache .hadoop .fs .azurebfs .constants .FileSystemConfigurations .HUNDRED ;
5151import static org .apache .hadoop .fs .azurebfs .constants .FileSystemConfigurations .ZERO ;
5252import static org .mockito .Mockito .mock ;
5353import static org .mockito .Mockito .when ;
@@ -832,7 +832,7 @@ void testThreadPoolOnLowCpuLoadAndMetricsUpdate()
832832 try {
833833 // Light operations — minimal CPU load
834834 for (int j = 0 ; j < 3 ; j ++) {
835- Thread .sleep (100 ); // simulate idle/light wait
835+ Thread .sleep (HUNDRED ); // simulate idle/light wait
836836 }
837837 } catch (Exception e ) {
838838 Assertions .fail ("Light task failed unexpectedly" , e );
You can’t perform that action at this time.
0 commit comments