From 0eb9ca3b71848258a0b7c82e5c99cebdf2904ebe Mon Sep 17 00:00:00 2001 From: Sitaram Kalluri Date: Wed, 27 Nov 2024 16:44:39 +0530 Subject: [PATCH] fix: Add randomId to have unique keys on each run --- tests/at_end2end_test/test/lookup_verb_test.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/at_end2end_test/test/lookup_verb_test.dart b/tests/at_end2end_test/test/lookup_verb_test.dart index a7c6d3af9..1c8087ea6 100644 --- a/tests/at_end2end_test/test/lookup_verb_test.dart +++ b/tests/at_end2end_test/test/lookup_verb_test.dart @@ -37,14 +37,16 @@ void main() { ///Update verb on bob atsign var lastValue = Random().nextInt(5); var value = 'Q7878R$lastValue'; - await sh1.writeCommand('update:$atSign_2:special-code$atSign_1 $value'); + var randomId = Uuid().v4(); + await sh1.writeCommand( + 'update:$atSign_2:special-code-$randomId$atSign_1 $value'); String response = await sh1.read(); print('update verb response : $response'); assert( (!response.contains('Invalid syntax')) && (!response.contains('null'))); ///lookup verb alice atsign - await sh2.writeCommand('lookup:special-code$atSign_1'); + await sh2.writeCommand('lookup:special-code-$randomId$atSign_1'); response = await sh2.read(timeoutMillis: 4000); print('lookup verb response : $response'); expect(response, contains('data:$value'));