Skip to content

Commit a2665d2

Browse files
committed
fix failed web test due to startup delay
1 parent 95309e6 commit a2665d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dargon2_flutter/dargon2_flutter/example/integration_test/argon2_ffi_test.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import 'package:dargon2_flutter_example/main.dart' as app;
99
void main() {
1010
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
1111
app.main();
12-
1312
// Argon2i test group
1413
group('Hash Tests - Argon2i', () {
15-
testWidgets('v = ${0x13}, t = 2, m = 16, p = 1,', (_) async {
14+
testWidgets('v = ${0x13}, t = 2, m = 16, p = 1,', (tester) async {
15+
await tester.pumpAndSettle();
1616
var code = await hashTest(Argon2Version.V13, 2, 16, 1, 'password', 'somesalt',
1717
'03df1d13e10203bcc663405e31ab1687939730c9152459bca28fd10c23e38f50',
1818
'\$argon2i\$v=19\$m=16,t=2,p=1\$c29tZXNhbHQ\$A98dE+ECA7zGY0BeMasWh5OXMMkVJFm8oo/RDCPjj1A', Argon2Type.i);
@@ -130,6 +130,7 @@ Future<DArgon2ErrorCode> hashTest(Argon2Version version, int iterations, int mem
130130
return DArgon2ErrorCode.ARGON2_OK;
131131

132132
} on DArgon2Exception catch (e) {
133+
print("Catch: $e");
133134
return e.errorCode;
134135
}
135136
}

0 commit comments

Comments
 (0)