@@ -273,6 +273,9 @@ public function testInsertNestedArray()
273273 }
274274 public function testRFCCSVAndTSVWrite ()
275275 {
276+
277+ $ check_hash ='5774439760453101066 ' ;
278+
276279 $ fileName =$ this ->tmpPath .'__testRFCCSVWrite ' ;
277280
278281 $ array_value_test ="\n1 \n2's' " ;
@@ -318,8 +321,7 @@ public function testRFCCSVAndTSVWrite()
318321
319322 $ st =$ this ->client ->select ('SELECT sipHash64(strs) as hash FROM testRFCCSVWrite WHERE like(strs, \'%ABCDEFG% \') ' );
320323
321-
322- $ this ->assertEquals ('5774439760453101066 ' , $ st ->fetchOne ('hash ' ));
324+ $ this ->assertEquals ($ check_hash , $ st ->fetchOne ('hash ' ));
323325
324326 $ ID_ARRAY =$ this ->client ->select ('SELECT * FROM testRFCCSVWrite WHERE strs= \'ID_ARRAY \'' )->fetchOne ('arrs ' )[2 ];
325327
@@ -370,7 +372,7 @@ public function testRFCCSVAndTSVWrite()
370372 $ st =$ this ->client ->select ('SELECT sipHash64(strs) as hash FROM testRFCCSVWrite WHERE like(strs, \'%ABCDEFG% \') ' );
371373
372374
373- $ this ->assertEquals (' 17721988568158798984 ' , $ st ->fetchOne ('hash ' ));
375+ $ this ->assertEquals ($ check_hash , $ st ->fetchOne ('hash ' ));
374376
375377 $ ID_ARRAY =$ this ->client ->select ('SELECT * FROM testRFCCSVWrite WHERE strs= \'ID_ARRAY \'' )->fetchOne ('arrs ' )[2 ];
376378
@@ -483,10 +485,12 @@ public function testWriteToFileSelect()
483485 }
484486
485487 /**
486- * @expectedException \ClickHouseDB\Exception\DatabaseException
488+ * @expectedException \ClickHouseDB\Exception\QueryException
487489 */
488490 public function testInsertCSVError ()
489491 {
492+ $ this ->expectException (\ClickHouseDB \Exception \QueryException::class);
493+
490494 $ file_data_names = [
491495 $ this ->tmpPath . '_testInsertCSV_clickHouseDB_test.1.data '
492496 ];
@@ -639,7 +643,8 @@ public function testInsertCSV()
639643 $ this ->assertEquals (6408 , $ st ->count ());
640644
641645 $ st = $ this ->client ->select ('SELECT * FROM summing_url_views LIMIT 4 ' );
642- $ this ->assertEquals (4 , $ st ->countAll ());
646+
647+ $ this ->assertGreaterThan (4 , $ st ->countAll ());
643648
644649
645650 $ stat = $ this ->client ->insertBatchFiles ('summing_url_views ' , $ file_data_names , [
0 commit comments