Skip to content

Commit f01e50d

Browse files
committed
Update test to use float value
1 parent 9925c25 commit f01e50d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/phpunit/tests/ai-client/wpAiClientPromptBuilder.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)