From e0228bca0f8cc2133a4efbbc5ed62bf01fda3783 Mon Sep 17 00:00:00 2001 From: StevenWdV Date: Wed, 9 Feb 2022 17:02:20 +0100 Subject: Improve wrapper min sign time tests, add .NET version note --- wrappers/php/tests/DiscoveryTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wrappers/php') diff --git a/wrappers/php/tests/DiscoveryTest.php b/wrappers/php/tests/DiscoveryTest.php index 4e4fbeb..0653eaa 100644 --- a/wrappers/php/tests/DiscoveryTest.php +++ b/wrappers/php/tests/DiscoveryTest.php @@ -21,7 +21,7 @@ class DiscoveryTest extends TestCase $this->expectNotToPerformAssertions(); Discovery::verify(file_get_contents(self::TEST_DATA_DIR . '/server_list.json.minisig'), file_get_contents(self::TEST_DATA_DIR . '/server_list.json'), - 'server_list.json', 0); + 'server_list.json', 10); } public function testInvalidSignature(): void @@ -45,7 +45,7 @@ class DiscoveryTest extends TestCase $this->expectException(SignatureTooOldException::class); Discovery::verify(file_get_contents(self::TEST_DATA_DIR . '/server_list.json.minisig'), file_get_contents(self::TEST_DATA_DIR . '/server_list.json'), - 'server_list.json', 1 << 31); + 'server_list.json', 11); } public function testUnknownExpectedFileName(): void -- cgit v1.2.3