File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2939,7 +2939,7 @@ public static void test_query_progress() throws Exception {
29392939 ExecutorService executorService = Executors .newSingleThreadExecutor ();
29402940 Future <QueryProgress > future = executorService .submit (() -> {
29412941 try {
2942- Thread .sleep (1500 );
2942+ Thread .sleep (3500 );
29432943 QueryProgress qp = stmt .getQueryProgress ();
29442944 stmt .cancel ();
29452945 return qp ;
@@ -2960,9 +2960,8 @@ public static void test_query_progress() throws Exception {
29602960 QueryProgress qpRunning = future .get ();
29612961 assertNotNull (qpRunning );
29622962 assertTrue (qpRunning .getPercentage () > 0.09 );
2963- assertTrue (qpRunning .getPercentage () < 0.1 );
2964- assertEquals (qpRunning .getRowsProcessed (), 1L );
2965- assertEquals (qpRunning .getTotalRowsToProcess (), 1004L );
2963+ assertTrue (qpRunning .getRowsProcessed () > 0 );
2964+ assertTrue (qpRunning .getTotalRowsToProcess () > 0 );
29662965
29672966 assertThrows (stmt ::getQueryProgress , SQLException .class );
29682967 }
You can’t perform that action at this time.
0 commit comments