diff --git a/src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Create.cs b/src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Create.cs
index b08b09394443cd..3ba4081397b7bf 100644
--- a/src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Create.cs
+++ b/src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Create.cs
@@ -282,19 +282,23 @@ public void InvalidDates()
Assert.Equal(new DateTime(1980, 1, 1, 0, 0, 0), archive.Entries[0].LastWriteTime.DateTime);
}
- FileInfo fileWithBadDate = new FileInfo(GetTestFilePath());
- fileWithBadDate.Create().Dispose();
- fileWithBadDate.LastWriteTimeUtc = new DateTime(1970, 1, 1, 1, 1, 1);
-
- string archivePath = GetTestFilePath();
- using (FileStream output = File.Open(archivePath, FileMode.Create))
- using (ZipArchive archive = new ZipArchive(output, ZipArchiveMode.Create))
- {
- archive.CreateEntryFromFile(fileWithBadDate.FullName, "SomeEntryName");
- }
- using (ZipArchive archive = ZipFile.OpenRead(archivePath))
+ // Browser VFS does not support saving file attributes, so skip
+ if (!PlatformDetection.IsBrowser)
{
- Assert.Equal(new DateTime(1980, 1, 1, 0, 0, 0), archive.Entries[0].LastWriteTime.DateTime);
+ FileInfo fileWithBadDate = new FileInfo(GetTestFilePath());
+ fileWithBadDate.Create().Dispose();
+ fileWithBadDate.LastWriteTimeUtc = new DateTime(1970, 1, 1, 1, 1, 1);
+
+ string archivePath = GetTestFilePath();
+ using (FileStream output = File.Open(archivePath, FileMode.Create))
+ using (ZipArchive archive = new ZipArchive(output, ZipArchiveMode.Create))
+ {
+ archive.CreateEntryFromFile(fileWithBadDate.FullName, "SomeEntryName");
+ }
+ using (ZipArchive archive = ZipFile.OpenRead(archivePath))
+ {
+ Assert.Equal(new DateTime(1980, 1, 1, 0, 0, 0), archive.Entries[0].LastWriteTime.DateTime);
+ }
}
}
diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj
index d369aba08d76ed..fc0044d2a071ab 100644
--- a/src/libraries/tests.proj
+++ b/src/libraries/tests.proj
@@ -46,7 +46,6 @@
-