Fix the output of the CDN test. (#148730)

This test was outputting the "success" string multiple times, which is probably causing the harness to kill the app halfway through its cycle. I suspect this is causing some of the flakiness we've seen of this test. Instead, we should just output the string at the very end of the test, right before the app is done.
This commit is contained in:
Jackson Gardner
2024-05-21 11:07:23 -07:00
committed by GitHub
parent fe9e485bde
commit 31fc593724
5 changed files with 31 additions and 28 deletions

View File

@@ -35,14 +35,14 @@ Future<void> main() async {
output.writeln('--- TEST FAILED ---');
}
print(output);
web.window.fetch(
await web.window.fetch(
'/test-result'.toJS,
web.RequestInit(
method: 'POST',
body: '$output'.toJS,
)
);
).toDart;
print(output);
}
bool _errorMessageFormattedCorrectly(String errorMessage) {