File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,20 @@ public function testProgressFunction()
33
33
global $ resultTest ;
34
34
$ resultTest =$ data ;
35
35
});
36
- $ st =$ this ->client ->select ('SELECT number,sleep(0.1 ) FROM system.numbers limit 4 ' );
36
+ $ st =$ this ->client ->select ('SELECT number,sleep(0.2 ) FROM system.numbers limit 4 ' );
37
37
38
38
// read_rows + read_bytes + total_rows
39
39
$ this ->assertArrayHasKey ('read_rows ' ,$ resultTest );
40
40
$ this ->assertArrayHasKey ('read_bytes ' ,$ resultTest );
41
- $ this ->assertArrayHasKey ('total_rows ' ,$ resultTest );
41
+
42
+ if (isset ($ resultTest ['total_rows ' ]))
43
+ {
44
+ $ this ->assertArrayHasKey ('total_rows ' ,$ resultTest );
45
+ } else {
46
+ $ this ->assertArrayHasKey ('total_rows_to_read ' ,$ resultTest );
47
+ }
48
+
49
+
42
50
43
51
$ this ->assertGreaterThan (3 ,$ resultTest ['read_rows ' ]);
44
52
$ this ->assertGreaterThan (3 ,$ resultTest ['read_bytes ' ]);
You can’t perform that action at this time.
0 commit comments