Duplicate test fix.
This commit is contained in:
parent
3b882fc449
commit
4311ddb461
@ -38,9 +38,8 @@ void main() {
|
|||||||
return createTestCommandRunner(command).run(
|
return createTestCommandRunner(command).run(
|
||||||
<String>['analyze', '--no-current-package', '--no-current-directory', dartFileA.path, dartFileB.path]
|
<String>['analyze', '--no-current-package', '--no-current-directory', dartFileA.path, dartFileB.path]
|
||||||
).then((int code) {
|
).then((int code) {
|
||||||
expect(code, 1);
|
expect(code, 0);
|
||||||
expect(testLogger.errorText, '[warning] The imported libraries \'a.dart\' and \'b.dart\' cannot have the same name \'test\' (${dartFileB.path})\n');
|
expect(testLogger.statusText, startsWith('Analyzing 2 files...\nNo analyzer warnings!'));
|
||||||
expect(testLogger.statusText, 'Analyzing 2 entry points...\n');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}, overrides: <Type, dynamic>{
|
}, overrides: <Type, dynamic>{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user