Skip to content

Commit

Permalink
fix: use auth_cli.wrappedMain in enrollment_cli_commands_test.dart so…
Browse files Browse the repository at this point in the history
… that exceptions flow through to the tests
  • Loading branch information
gkc committed Oct 9, 2024
1 parent 46833f3 commit 8795894
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void main() {
'-r',
'vip.ve.atsign.zone'
];
var res = await auth_cli.main(args);
var res = await auth_cli.wrappedMain(args);
// Zero indicates successful completion.
expect(res, 0);

Expand All @@ -69,7 +69,7 @@ void main() {
'-i',
atEnrollmentResponse.enrollmentId
];
res = await auth_cli.main(args);
res = await auth_cli.wrappedMain(args);
expect(res, 0);
logger.info(
'Approved enrollment with enrollmentId: ${atEnrollmentResponse.enrollmentId}');
Expand All @@ -96,7 +96,7 @@ void main() {
'-i',
atEnrollmentResponse.enrollmentId
];
res = await auth_cli.main(args);
res = await auth_cli.wrappedMain(args);
expect(res, 0);
logger.info(
'Revoked enrollment with enrollmentId: ${atEnrollmentResponse.enrollmentId}');
Expand All @@ -117,7 +117,7 @@ void main() {
'-i',
atEnrollmentResponse.enrollmentId
];
res = await auth_cli.main(args);
res = await auth_cli.wrappedMain(args);
logger.info(
'Un-Revoked enrollment with enrollmentId: ${atEnrollmentResponse.enrollmentId}');
// Perform authentication with the unrevoked enrollment-id.
Expand Down

0 comments on commit 8795894

Please sign in to comment.