Commit c2dfa6a1 authored by Alexander Aprelev's avatar Alexander Aprelev Committed by GitHub

Change pattern triggering next step. (#12543)

Previously chosen pattern was generated in the output not quite at the end of the hot reload process.
parent be1467e0
...@@ -44,7 +44,7 @@ TaskFunction createHotModeTest({ bool isPreviewDart2: false }) { ...@@ -44,7 +44,7 @@ TaskFunction createHotModeTest({ bool isPreviewDart2: false }) {
.transform(UTF8.decoder) .transform(UTF8.decoder)
.transform(const LineSplitter()) .transform(const LineSplitter())
.listen((String line) { .listen((String line) {
if (line.contains('\] Hot reload performed in')) { if (line.contains('\] Reloaded ')) {
if (hotReloadCount == 0) { if (hotReloadCount == 0) {
// Update the file and reload again. // Update the file and reload again.
final File appDartSource = file(path.join( final File appDartSource = file(path.join(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment