diff --git a/testing/web-platform/tests/native-io/rename_async_failure_handling.tentative.https.any.js b/testing/web-platform/tests/native-io/rename_async_failure_handling.tentative.https.any.js index 5e0f96408bb7..64ea24fa65eb 100644 --- a/testing/web-platform/tests/native-io/rename_async_failure_handling.tentative.https.any.js +++ b/testing/web-platform/tests/native-io/rename_async_failure_handling.tentative.https.any.js @@ -93,8 +93,8 @@ promise_test(async testCase => { closed_file.close(); const opened_file = await nativeIO.open('opened_file'); testCase.add_cleanup(async () => { - closed_file.close(); - opened_file.close(); + await closed_file.close(); + await opened_file.close(); await nativeIO.delete('closed_file'); await nativeIO.delete('opened_file'); });