Browse Source

Fixing unit test when running in UTC timezone

The CI on codebetter is running on UTC
Sebastien Ros 11 years ago
parent
commit
87a423f34b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Jint.Tests/Runtime/EngineTests.cs

+ 2 - 1
Jint.Tests/Runtime/EngineTests.cs

@@ -752,7 +752,8 @@ namespace Jint.Tests.Runtime
         {
         {
             if (TimeZoneInfo.Local.BaseUtcOffset.Equals(new TimeSpan(0)))
             if (TimeZoneInfo.Local.BaseUtcOffset.Equals(new TimeSpan(0)))
             {
             {
-                throw new Exception("Test is not valid if the Local timezone offset is the same as UTC.");
+                // Test is not valid if the Local timezone offset is the same as UTC
+                return;
             }
             }
 
 
             var engine = new Engine();
             var engine = new Engine();