Skip to content

Commit

Permalink
remove not-working engine artifacts update checking test
Browse files Browse the repository at this point in the history
  • Loading branch information
ardera committed Aug 8, 2024
1 parent 60bc840 commit be83df7
Showing 1 changed file with 1 addition and 44 deletions.
45 changes: 1 addition & 44 deletions test/cache_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -512,50 +512,7 @@ void main() {
);
});

group('engine artifacts update checking', () {
late MemoryFileSystem fs;
late FakeGithub github;
late Cache cache;

setUp(() {
fs = MemoryFileSystem.test();
github = FakeGithub();

cache = Cache.test(
processManager: FakeProcessManager.any(),
);
});

/// TODO: Implement
test('check for updates', () async {
final artifact = GithubReleaseArtifact(
cache: cache,
github: github,
artifactDescription: EngineArtifactDescription.universal(
prefix: 'universal',
cacheKey: 'flutterpi-universal',
),
repo: RepositorySlug('abc', 'def'),
);

var lookedUpTagName = false;
github.getReleaseByTagNameFn = (tagName, {required repo}) async {
expect(tagName, 'engine/abcdef');
expect(repo.fullName, 'abc/def');
lookedUpTagName = true;

return Release(
assets: [
ReleaseAsset(name: 'universal.tar.xz'),
],
);
};

await expectLater(artifact.isUpToDate(fs), completes);

expect(lookedUpTagName, isTrue);
});
});
// TODO: Engine artifacts update checking

group('flutter-pi update checking', () {
late BufferLogger logger;
Expand Down

0 comments on commit be83df7

Please sign in to comment.