Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
42c9e276
Unverified
Commit
42c9e276
authored
Mar 04, 2021
by
Jenn Magder
Committed by
GitHub
Mar 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase dart migrate integration test timeout (#77192)
parent
eee0dc84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
46 deletions
+48
-46
migrate_test.dart
...es/flutter_tools/test/integration.shard/migrate_test.dart
+48
-46
No files found.
packages/flutter_tools/test/integration.shard/migrate_test.dart
View file @
42c9e276
...
...
@@ -13,55 +13,57 @@ import 'test_utils.dart';
void
main
(
)
{
/// Verifies that `dart migrate` will run successfully on the default `flutter create`
/// template.
testWithoutContext
(
'dart migrate succeeds on flutter create template'
,
()
async
{
Directory
tempDir
;
try
{
tempDir
=
await
_createProject
(
tempDir
);
await
_migrate
(
tempDir
);
await
_analyze
(
tempDir
);
}
finally
{
tempDir
?.
deleteSync
(
recursive:
true
);
}
});
group
(
'dart migrate'
,
()
{
testWithoutContext
(
'dart migrate succeeds on flutter create template'
,
()
async
{
Directory
tempDir
;
try
{
tempDir
=
await
_createProject
(
tempDir
);
await
_migrate
(
tempDir
);
await
_analyze
(
tempDir
);
}
finally
{
tempDir
?.
deleteSync
(
recursive:
true
);
}
});
/// Verifies that `dart migrate` will run successfully on the module template
/// used by `flutter create --template=module`.
testWithoutContext
(
'dart migrate succeeds on module template'
,
()
async
{
Directory
tempDir
;
try
{
tempDir
=
await
_createProject
(
tempDir
,
<
String
>[
'--template=module'
]);
await
_migrate
(
tempDir
);
await
_analyze
(
tempDir
);
}
finally
{
tempDir
?.
deleteSync
(
recursive:
true
);
}
},
timeout:
const
Timeout
(
Duration
(
minutes:
1
))
);
/// Verifies that `dart migrate` will run successfully on the module template
/// used by `flutter create --template=module`.
testWithoutContext
(
'dart migrate succeeds on module template'
,
()
async
{
Directory
tempDir
;
try
{
tempDir
=
await
_createProject
(
tempDir
,
<
String
>[
'--template=module'
]);
await
_migrate
(
tempDir
);
await
_analyze
(
tempDir
);
}
finally
{
tempDir
?.
deleteSync
(
recursive:
true
);
}
}
);
/// Verifies that `dart migrate` will run successfully on the module template
/// used by `flutter create --template=plugin`.
testWithoutContext
(
'dart migrate succeeds on plugin template'
,
()
async
{
Directory
tempDir
;
try
{
tempDir
=
await
_createProject
(
tempDir
,
<
String
>[
'--template=plugin'
]);
await
_migrate
(
tempDir
);
await
_analyze
(
tempDir
);
}
finally
{
tempDir
?.
deleteSync
(
recursive:
true
);
}
});
/// Verifies that `dart migrate` will run successfully on the module template
/// used by `flutter create --template=plugin`.
testWithoutContext
(
'dart migrate succeeds on plugin template'
,
()
async
{
Directory
tempDir
;
try
{
tempDir
=
await
_createProject
(
tempDir
,
<
String
>[
'--template=plugin'
]);
await
_migrate
(
tempDir
);
await
_analyze
(
tempDir
);
}
finally
{
tempDir
?.
deleteSync
(
recursive:
true
);
}
});
/// Verifies that `dart migrate` will run successfully on the module template
/// used by `flutter create --template=package`.
testWithoutContext
(
'dart migrate succeeds on package template'
,
()
async
{
Directory
tempDir
;
try
{
tempDir
=
await
_createProject
(
tempDir
,
<
String
>[
'--template=package'
]);
await
_migrate
(
tempDir
);
await
_analyze
(
tempDir
);
}
finally
{
tempDir
?.
deleteSync
(
recursive:
true
);
}
});
/// Verifies that `dart migrate` will run successfully on the module template
/// used by `flutter create --template=package`.
testWithoutContext
(
'dart migrate succeeds on package template'
,
()
async
{
Directory
tempDir
;
try
{
tempDir
=
await
_createProject
(
tempDir
,
<
String
>[
'--template=package'
]);
await
_migrate
(
tempDir
);
await
_analyze
(
tempDir
);
}
finally
{
tempDir
?.
deleteSync
(
recursive:
true
);
}
});
},
timeout:
const
Timeout
(
Duration
(
seconds:
90
)));
}
Future
<
Directory
>
_createProject
(
Directory
tempDir
,
[
List
<
String
>
extraAgs
])
async
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment