File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -183,9 +183,9 @@ public function setHost($host): void
183
183
/**
184
184
* max_execution_time , in int value (seconds)
185
185
*/
186
- public function setTimeout (int $ timeout ): Settings
186
+ public function setTimeout ($ timeout ): Settings
187
187
{
188
- return $ this ->settings ()->max_execution_time ($ timeout );
188
+ return $ this ->settings ()->max_execution_time (intval ( $ timeout) );
189
189
}
190
190
191
191
/**
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public function testClientTimeoutSettings()
61
61
// max_execution_time - is integer in clickhouse source - Seconds
62
62
$ this ->client ->database ('default ' );
63
63
64
- $ timeout = 0.55 ; // un support, "clickhouse source - Seconds"
64
+ $ timeout = 1.515 ; // un support, "clickhouse source - Seconds"
65
65
$ this ->client ->setTimeout ($ timeout ); // 550 ms
66
66
$ this ->client ->select ('SELECT 123,123 as ping ' )->rows ();
67
67
$ this ->assertSame (intval ($ timeout ), intval ($ this ->client ->getTimeout ()));
@@ -76,7 +76,6 @@ public function testClientTimeoutSettings()
76
76
$ this ->client ->select ('SELECT 123,123 as ping ' )->rows ();
77
77
$ this ->assertSame (intval ($ timeout ), $ this ->client ->getTimeout ());
78
78
79
-
80
79
// getConnectTimeOut is curl, can be float
81
80
$ timeout = 5.14 ;
82
81
$ this ->client ->setConnectTimeOut ($ timeout ); // 5 seconds
You can’t perform that action at this time.
0 commit comments