Update flutter_tools versioning tests to use Flaux URLs (#61)
diff --git a/packages/flutter_tools/test/general.shard/flutter_validator_test.dart b/packages/flutter_tools/test/general.shard/flutter_validator_test.dart
index 734de34..731b61e 100644
--- a/packages/flutter_tools/test/general.shard/flutter_validator_test.dart
+++ b/packages/flutter_tools/test/general.shard/flutter_validator_test.dart
@@ -233,7 +233,7 @@
validationType: ValidationType.partial,
statusInfo: 'Channel beta, 1.0.0, on Linux, locale en_US.UTF-8',
messages: containsAll(const <ValidationMessage>[
- ValidationMessage.hint('Upstream repository https://github.com/flutter/flutter.git is not the same as FLUTTER_GIT_URL'),
+ ValidationMessage.hint('Upstream repository https://github.com/flutter/flaux.git is not the same as FLUTTER_GIT_URL'),
ValidationMessage('FLUTTER_GIT_URL = https://githubmirror.com/flutter.git'),
ValidationMessage(
'If those were intentional, you can disregard the above warnings; however it is '
@@ -329,7 +329,7 @@
expect(await flutterValidator.validate(), _matchDoctorValidation(
validationType: ValidationType.success,
statusInfo: 'Channel beta, 1.0.0, on Linux, locale en_US.UTF-8',
- messages: contains(const ValidationMessage('Upstream repository https://github.com/flutter/flutter.git')),
+ messages: contains(const ValidationMessage('Upstream repository https://github.com/flutter/flaux.git')),
));
});
diff --git a/packages/flutter_tools/test/general.shard/version_test.dart b/packages/flutter_tools/test/general.shard/version_test.dart
index 54ba0bc..3480372 100644
--- a/packages/flutter_tools/test/general.shard/version_test.dart
+++ b/packages/flutter_tools/test/general.shard/version_test.dart
@@ -60,7 +60,7 @@
});
testUsingContext('prints nothing when Flutter installation looks fresh', () async {
- const String flutterUpstreamUrl = 'https://github.com/flutter/flutter.git';
+ const String flutterUpstreamUrl = 'https://github.com/flutter/flaux.git';
processManager.addCommands(<FakeCommand>[
const FakeCommand(
command: <String>['git', '-c', 'log.showSignature=false', 'log', '-n', '1', '--pretty=format:%H'],
@@ -134,7 +134,7 @@
});
testUsingContext('does not crash when git log outputs malformed output', () async {
- const String flutterUpstreamUrl = 'https://github.com/flutter/flutter.git';
+ const String flutterUpstreamUrl = 'https://github.com/flutter/flaux.git';
final String malformedGitLogOutput = '${getChannelUpToDateVersion()}[0x7FF9E2A75000] ANOMALY: meaningless REX prefix used';
processManager.addCommands(<FakeCommand>[
@@ -366,10 +366,10 @@
}
group('VersionUpstreamValidator', () {
- const String flutterStandardUrlDotGit = 'https://github.com/flutter/flutter.git';
+ const String flutterStandardUrlDotGit = 'https://github.com/flutter/flaux.git';
const String flutterNonStandardUrlDotGit = 'https://githubmirror.com/flutter/flutter.git';
- const String flutterStandardSshUrlDotGit = 'git@github.com:flutter/flutter.git';
- const String flutterFullSshUrlDotGit = 'ssh://git@github.com/flutter/flutter.git';
+ const String flutterStandardSshUrlDotGit = 'git@github.com:flutter/flaux.git';
+ const String flutterFullSshUrlDotGit = 'ssh://git@github.com/flutter/flaux.git';
VersionCheckError? runUpstreamValidator({
String? versionUpstreamUrl,
@@ -889,7 +889,7 @@
stdout: 'master',
),
const FakeCommand(
- command: <String>['git', 'fetch', 'https://github.com/flutter/flutter.git', '--tags', '-f'],
+ command: <String>['git', 'fetch', 'https://github.com/flutter/flaux.git', '--tags', '-f'],
),
const FakeCommand(
command: <String>['git', 'tag', '--points-at', 'HEAD'],
diff --git a/packages/flutter_tools/test/src/fakes.dart b/packages/flutter_tools/test/src/fakes.dart
index 71ef35c..c73d026 100644
--- a/packages/flutter_tools/test/src/fakes.dart
+++ b/packages/flutter_tools/test/src/fakes.dart
@@ -362,7 +362,7 @@
this.devToolsVersion = '2.8.0',
this.engineRevision = 'abcdefghijklmnopqrstuvwxyz',
this.engineRevisionShort = 'abcde',
- this.repositoryUrl = 'https://github.com/flutter/flutter.git',
+ this.repositoryUrl = 'https://github.com/flutter/flaux.git',
this.frameworkVersion = '0.0.0',
this.frameworkRevision = '11111111111111111111',
this.frameworkRevisionShort = '11111',