From b9c9d839910522de8459a724cb9bbf8bb1b9a2fc Mon Sep 17 00:00:00 2001 From: Koji Wakamiya Date: Tue, 27 Feb 2024 13:47:19 +0900 Subject: [PATCH] refactor: Fix firefox test case --- test/browser_firefox_test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/browser_firefox_test.dart b/test/browser_firefox_test.dart index 086c2973..c79328dc 100644 --- a/test/browser_firefox_test.dart +++ b/test/browser_firefox_test.dart @@ -81,7 +81,7 @@ void main() { (e) => e.message, 'message', contains( - '''Failed to execute 'getRandomValues' on 'Crypto': The ArrayBufferView's byte length (1000000) exceeds the number of bytes of entropy available via this API (65536).''', + '''Crypto.getRandomValues: getRandomValues can only generate maximum 65536 bytes''', ), ), ), @@ -102,7 +102,7 @@ void main() { (e) => e.message, 'message', contains( - '''Failed to execute 'getRandomValues' on 'Crypto': The provided ArrayBufferView is of type 'Float32', which is not an integer array type.''', + '''The type of an object is incompatible with the expected type of the parameter associated to the object''', ), ), ),