Skip to content
This repository was archived by the owner on Mar 8, 2025. It is now read-only.

Commit f48706e

Browse files
Update flutter_tools versioning tests to use Flaux URLs (#61)
1 parent 1126288 commit f48706e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

packages/flutter_tools/test/general.shard/flutter_validator_test.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ void main() {
233233
validationType: ValidationType.partial,
234234
statusInfo: 'Channel beta, 1.0.0, on Linux, locale en_US.UTF-8',
235235
messages: containsAll(const <ValidationMessage>[
236-
ValidationMessage.hint('Upstream repository https://github.com/flutter/flutter.git is not the same as FLUTTER_GIT_URL'),
236+
ValidationMessage.hint('Upstream repository https://github.com/flutter/flaux.git is not the same as FLUTTER_GIT_URL'),
237237
ValidationMessage('FLUTTER_GIT_URL = https://githubmirror.com/flutter.git'),
238238
ValidationMessage(
239239
'If those were intentional, you can disregard the above warnings; however it is '
@@ -329,7 +329,7 @@ void main() {
329329
expect(await flutterValidator.validate(), _matchDoctorValidation(
330330
validationType: ValidationType.success,
331331
statusInfo: 'Channel beta, 1.0.0, on Linux, locale en_US.UTF-8',
332-
messages: contains(const ValidationMessage('Upstream repository https://github.com/flutter/flutter.git')),
332+
messages: contains(const ValidationMessage('Upstream repository https://github.com/flutter/flaux.git')),
333333
));
334334
});
335335

packages/flutter_tools/test/general.shard/version_test.dart

+6-6
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void main() {
6060
});
6161

6262
testUsingContext('prints nothing when Flutter installation looks fresh', () async {
63-
const String flutterUpstreamUrl = 'https://github.com/flutter/flutter.git';
63+
const String flutterUpstreamUrl = 'https://github.com/flutter/flaux.git';
6464
processManager.addCommands(<FakeCommand>[
6565
const FakeCommand(
6666
command: <String>['git', '-c', 'log.showSignature=false', 'log', '-n', '1', '--pretty=format:%H'],
@@ -134,7 +134,7 @@ void main() {
134134
});
135135

136136
testUsingContext('does not crash when git log outputs malformed output', () async {
137-
const String flutterUpstreamUrl = 'https://github.com/flutter/flutter.git';
137+
const String flutterUpstreamUrl = 'https://github.com/flutter/flaux.git';
138138

139139
final String malformedGitLogOutput = '${getChannelUpToDateVersion()}[0x7FF9E2A75000] ANOMALY: meaningless REX prefix used';
140140
processManager.addCommands(<FakeCommand>[
@@ -366,10 +366,10 @@ void main() {
366366
}
367367

368368
group('VersionUpstreamValidator', () {
369-
const String flutterStandardUrlDotGit = 'https://github.com/flutter/flutter.git';
369+
const String flutterStandardUrlDotGit = 'https://github.com/flutter/flaux.git';
370370
const String flutterNonStandardUrlDotGit = 'https://githubmirror.com/flutter/flutter.git';
371-
const String flutterStandardSshUrlDotGit = '[email protected]:flutter/flutter.git';
372-
const String flutterFullSshUrlDotGit = 'ssh://[email protected]/flutter/flutter.git';
371+
const String flutterStandardSshUrlDotGit = '[email protected]:flutter/flaux.git';
372+
const String flutterFullSshUrlDotGit = 'ssh://[email protected]/flutter/flaux.git';
373373

374374
VersionCheckError? runUpstreamValidator({
375375
String? versionUpstreamUrl,
@@ -889,7 +889,7 @@ void main() {
889889
stdout: 'master',
890890
),
891891
const FakeCommand(
892-
command: <String>['git', 'fetch', 'https://github.com/flutter/flutter.git', '--tags', '-f'],
892+
command: <String>['git', 'fetch', 'https://github.com/flutter/flaux.git', '--tags', '-f'],
893893
),
894894
const FakeCommand(
895895
command: <String>['git', 'tag', '--points-at', 'HEAD'],

packages/flutter_tools/test/src/fakes.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ class FakeFlutterVersion implements FlutterVersion {
362362
this.devToolsVersion = '2.8.0',
363363
this.engineRevision = 'abcdefghijklmnopqrstuvwxyz',
364364
this.engineRevisionShort = 'abcde',
365-
this.repositoryUrl = 'https://github.com/flutter/flutter.git',
365+
this.repositoryUrl = 'https://github.com/flutter/flaux.git',
366366
this.frameworkVersion = '0.0.0',
367367
this.frameworkRevision = '11111111111111111111',
368368
this.frameworkRevisionShort = '11111',

0 commit comments

Comments
 (0)