File tree Expand file tree Collapse file tree
tests/phpunit/tests/ai-client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -195,12 +195,13 @@ public function test_constructor_sets_default_request_timeout() {
195195 * Test that the constructor allows overriding the default request timeout with a higher value.
196196 *
197197 * @ticket 64591
198+ * @ticket 65094
198199 */
199200 public function test_constructor_allows_overriding_request_timeout_with_higher_value () {
200201 add_filter (
201202 'wp_ai_client_default_request_timeout ' ,
202203 static function () {
203- return 45 ;
204+ return 45.5 ;
204205 }
205206 );
206207
@@ -210,7 +211,7 @@ static function () {
210211 $ request_options = $ this ->get_wrapped_prompt_builder_property_value ( $ builder , 'requestOptions ' );
211212
212213 $ this ->assertInstanceOf ( RequestOptions::class, $ request_options );
213- $ this ->assertEquals ( 45 , $ request_options ->getTimeout () );
214+ $ this ->assertEquals ( 45.5 , $ request_options ->getTimeout () );
214215 }
215216
216217 /**
You can’t perform that action at this time.
0 commit comments