From 4318accf098654d81310c1debd4b8ba600450a6b Mon Sep 17 00:00:00 2001 From: dmitry krokhin Date: Mon, 23 Dec 2024 11:51:00 +0300 Subject: [PATCH] delay configuration --- tests/Functional/ConfigurationTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/Functional/ConfigurationTest.php b/tests/Functional/ConfigurationTest.php index 54e58c0..a4f9419 100644 --- a/tests/Functional/ConfigurationTest.php +++ b/tests/Functional/ConfigurationTest.php @@ -8,6 +8,15 @@ class ConfigurationTest extends FunctionalTestCase { + public function testClientDelayConfiguration() + { + $client = $this->getClient(); + + $delay = rand(1, 100); + $client->setDelay($delay); + $this->assertSame($delay, $client->configuration->getDelay()); + } + public function testClientConfigurationOverride() { $this->assertSame($this->getConfiguration()->host, getenv('NATS_HOST'));