Skip to content

Commit 76db0d7

Browse files
authored
Fix typo in test class (flutter#84961)
1 parent 529a599 commit 76db0d7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ void main() {
195195
});
196196

197197
testWithoutContext('should not be up to date, if some cached artifact is not', () async {
198-
final CachedArtifact artifact1 = FakeSecondayCachedArtifact()
198+
final CachedArtifact artifact1 = FakeSecondaryCachedArtifact()
199199
..upToDate = true;
200-
final CachedArtifact artifact2 = FakeSecondayCachedArtifact()
200+
final CachedArtifact artifact2 = FakeSecondaryCachedArtifact()
201201
..upToDate = false;
202202
final FileSystem fileSystem = MemoryFileSystem.test();
203203

@@ -211,9 +211,9 @@ void main() {
211211
});
212212

213213
testWithoutContext('should be up to date, if all cached artifacts are', () async {
214-
final FakeSecondayCachedArtifact artifact1 = FakeSecondayCachedArtifact()
214+
final FakeSecondaryCachedArtifact artifact1 = FakeSecondaryCachedArtifact()
215215
..upToDate = true;
216-
final FakeSecondayCachedArtifact artifact2 = FakeSecondayCachedArtifact()
216+
final FakeSecondaryCachedArtifact artifact2 = FakeSecondaryCachedArtifact()
217217
..upToDate = true;
218218
final FileSystem fileSystem = MemoryFileSystem.test();
219219
final Cache cache = Cache.test(
@@ -226,9 +226,9 @@ void main() {
226226
});
227227

228228
testWithoutContext('should update cached artifacts which are not up to date', () async {
229-
final FakeSecondayCachedArtifact artifact1 = FakeSecondayCachedArtifact()
229+
final FakeSecondaryCachedArtifact artifact1 = FakeSecondaryCachedArtifact()
230230
..upToDate = true;
231-
final FakeSecondayCachedArtifact artifact2 = FakeSecondayCachedArtifact()
231+
final FakeSecondaryCachedArtifact artifact2 = FakeSecondaryCachedArtifact()
232232
..upToDate = false;
233233
final FileSystem fileSystem = MemoryFileSystem.test();
234234

@@ -272,9 +272,9 @@ void main() {
272272

273273
testWithoutContext('failed storage.googleapis.com download shows China warning', () async {
274274
final InternetAddress address = (await InternetAddress.lookup('storage.googleapis.com')).first;
275-
final FakeSecondayCachedArtifact artifact1 = FakeSecondayCachedArtifact()
275+
final FakeSecondaryCachedArtifact artifact1 = FakeSecondaryCachedArtifact()
276276
..upToDate = false;
277-
final FakeSecondayCachedArtifact artifact2 = FakeSecondayCachedArtifact()
277+
final FakeSecondaryCachedArtifact artifact2 = FakeSecondaryCachedArtifact()
278278
..upToDate = false
279279
..updateException = SocketException(
280280
'Connection reset by peer',
@@ -969,7 +969,7 @@ class FakeDownloadedArtifact extends CachedArtifact {
969969
Future<void> updateInner(ArtifactUpdater artifactUpdater, FileSystem fileSystem, OperatingSystemUtils operatingSystemUtils) async { }
970970
}
971971

972-
class FakeSecondayCachedArtifact extends Fake implements CachedArtifact {
972+
class FakeSecondaryCachedArtifact extends Fake implements CachedArtifact {
973973
bool upToDate = false;
974974
bool didUpdate = false;
975975
Exception updateException;

0 commit comments

Comments
 (0)