Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
Update flutter_tools versioning tests to use Flaux URLs (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored Dec 12, 2024
1 parent 1126288 commit f48706e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ void main() {
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 '
Expand Down Expand Up @@ -329,7 +329,7 @@ void main() {
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')),
));
});

Expand Down
12 changes: 6 additions & 6 deletions packages/flutter_tools/test/general.shard/version_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void main() {
});

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'],
Expand Down Expand Up @@ -134,7 +134,7 @@ void main() {
});

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>[
Expand Down Expand Up @@ -366,10 +366,10 @@ void main() {
}

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 = '[email protected]:flutter/flutter.git';
const String flutterFullSshUrlDotGit = 'ssh://[email protected]/flutter/flutter.git';
const String flutterStandardSshUrlDotGit = '[email protected]:flutter/flaux.git';
const String flutterFullSshUrlDotGit = 'ssh://[email protected]/flutter/flaux.git';

VersionCheckError? runUpstreamValidator({
String? versionUpstreamUrl,
Expand Down Expand Up @@ -889,7 +889,7 @@ void main() {
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'],
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_tools/test/src/fakes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ class FakeFlutterVersion implements FlutterVersion {
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',
Expand Down

0 comments on commit f48706e

Please sign in to comment.