Unverified Commit 76db0d74 authored by Ahmed Ashour's avatar Ahmed Ashour Committed by GitHub

Fix typo in test class (#84961)

parent 529a599c
...@@ -195,9 +195,9 @@ void main() { ...@@ -195,9 +195,9 @@ void main() {
}); });
testWithoutContext('should not be up to date, if some cached artifact is not', () async { testWithoutContext('should not be up to date, if some cached artifact is not', () async {
final CachedArtifact artifact1 = FakeSecondayCachedArtifact() final CachedArtifact artifact1 = FakeSecondaryCachedArtifact()
..upToDate = true; ..upToDate = true;
final CachedArtifact artifact2 = FakeSecondayCachedArtifact() final CachedArtifact artifact2 = FakeSecondaryCachedArtifact()
..upToDate = false; ..upToDate = false;
final FileSystem fileSystem = MemoryFileSystem.test(); final FileSystem fileSystem = MemoryFileSystem.test();
...@@ -211,9 +211,9 @@ void main() { ...@@ -211,9 +211,9 @@ void main() {
}); });
testWithoutContext('should be up to date, if all cached artifacts are', () async { testWithoutContext('should be up to date, if all cached artifacts are', () async {
final FakeSecondayCachedArtifact artifact1 = FakeSecondayCachedArtifact() final FakeSecondaryCachedArtifact artifact1 = FakeSecondaryCachedArtifact()
..upToDate = true; ..upToDate = true;
final FakeSecondayCachedArtifact artifact2 = FakeSecondayCachedArtifact() final FakeSecondaryCachedArtifact artifact2 = FakeSecondaryCachedArtifact()
..upToDate = true; ..upToDate = true;
final FileSystem fileSystem = MemoryFileSystem.test(); final FileSystem fileSystem = MemoryFileSystem.test();
final Cache cache = Cache.test( final Cache cache = Cache.test(
...@@ -226,9 +226,9 @@ void main() { ...@@ -226,9 +226,9 @@ void main() {
}); });
testWithoutContext('should update cached artifacts which are not up to date', () async { testWithoutContext('should update cached artifacts which are not up to date', () async {
final FakeSecondayCachedArtifact artifact1 = FakeSecondayCachedArtifact() final FakeSecondaryCachedArtifact artifact1 = FakeSecondaryCachedArtifact()
..upToDate = true; ..upToDate = true;
final FakeSecondayCachedArtifact artifact2 = FakeSecondayCachedArtifact() final FakeSecondaryCachedArtifact artifact2 = FakeSecondaryCachedArtifact()
..upToDate = false; ..upToDate = false;
final FileSystem fileSystem = MemoryFileSystem.test(); final FileSystem fileSystem = MemoryFileSystem.test();
...@@ -272,9 +272,9 @@ void main() { ...@@ -272,9 +272,9 @@ void main() {
testWithoutContext('failed storage.googleapis.com download shows China warning', () async { testWithoutContext('failed storage.googleapis.com download shows China warning', () async {
final InternetAddress address = (await InternetAddress.lookup('storage.googleapis.com')).first; final InternetAddress address = (await InternetAddress.lookup('storage.googleapis.com')).first;
final FakeSecondayCachedArtifact artifact1 = FakeSecondayCachedArtifact() final FakeSecondaryCachedArtifact artifact1 = FakeSecondaryCachedArtifact()
..upToDate = false; ..upToDate = false;
final FakeSecondayCachedArtifact artifact2 = FakeSecondayCachedArtifact() final FakeSecondaryCachedArtifact artifact2 = FakeSecondaryCachedArtifact()
..upToDate = false ..upToDate = false
..updateException = SocketException( ..updateException = SocketException(
'Connection reset by peer', 'Connection reset by peer',
...@@ -969,7 +969,7 @@ class FakeDownloadedArtifact extends CachedArtifact { ...@@ -969,7 +969,7 @@ class FakeDownloadedArtifact extends CachedArtifact {
Future<void> updateInner(ArtifactUpdater artifactUpdater, FileSystem fileSystem, OperatingSystemUtils operatingSystemUtils) async { } Future<void> updateInner(ArtifactUpdater artifactUpdater, FileSystem fileSystem, OperatingSystemUtils operatingSystemUtils) async { }
} }
class FakeSecondayCachedArtifact extends Fake implements CachedArtifact { class FakeSecondaryCachedArtifact extends Fake implements CachedArtifact {
bool upToDate = false; bool upToDate = false;
bool didUpdate = false; bool didUpdate = false;
Exception updateException; Exception updateException;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment