Skip to content

Commit

Permalink
fix: Add randomId to have unique keys on each run
Browse files Browse the repository at this point in the history
  • Loading branch information
sitaram-kalluri committed Nov 27, 2024
1 parent a8656d9 commit 0eb9ca3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/at_end2end_test/test/lookup_verb_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 0eb9ca3

Please sign in to comment.