@@ -86,8 +86,8 @@ public void TimesIncludeMillisecondPart_Linux()
8686 DateTime time = function . Getter ( item ) ;
8787 msec = time . Millisecond ;
8888
89- // if (msec != 0)
90- // break;
89+ if ( msec != 0 )
90+ break ;
9191
9292 // This case should only happen 1/1000 times, unless the OS/Filesystem does
9393 // not support millisecond granularity.
@@ -98,14 +98,12 @@ public void TimesIncludeMillisecondPart_Linux()
9898 // If it's the OS/Filesystem often returns 0 for the millisecond part, this may
9999 // help prove it. This should only be written 1/1000 runs, unless the test is going to
100100 // fail.
101- //Console.WriteLine($"TimesIncludeMillisecondPart got a file time of {time.ToString("o")}");
102101 Console . WriteLine ( $ "## TimesIncludeMillisecondPart got a file time of { time . ToString ( "o" ) } on { driveFormat } ") ;
103102
104103 item = GetExistingItem ( ) ; // try a new file/directory
105104 }
106105
107- // Temporarily disabled while investigating failures in #27662
108- // Assert.NotEqual(0, msec);
106+ Assert . NotEqual ( 0 , msec ) ;
109107 } ) ;
110108 }
111109
@@ -131,11 +129,6 @@ public void TimesIncludeMillisecondPart_Windows()
131129 // If it's 1/1000, or low granularity, this may help:
132130 Thread . Sleep ( 1234 ) ;
133131
134- // If it's the OS/Filesystem often returns 0 for the millisecond part, this may
135- // help prove it. This should only be written 1/1000 runs, unless the test is going to
136- // fail.
137- Console . WriteLine ( $ "TimesIncludeMillisecondPart got a file time of { time . ToString ( "o" ) } ") ;
138-
139132 item = GetExistingItem ( ) ; // try a new file/directory
140133 }
141134
0 commit comments