[Groonga-commit] ranguba/chupa-text-decomposer-pdf at e69dcdc [master] test: add workaround for Travis CI

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jul 6 15:28:06 JST 2017


Kouhei Sutou	2017-07-06 15:28:06 +0900 (Thu, 06 Jul 2017)

  New Revision: e69dcdce4b007c893d410ee85ce7c9718f46774e
  https://github.com/ranguba/chupa-text-decomposer-pdf/commit/e69dcdce4b007c893d410ee85ce7c9718f46774e

  Message:
    test: add workaround for Travis CI

  Modified files:
    test/test-pdf.rb

  Modified: test/test-pdf.rb (+7 -2)
===================================================================
--- test/test-pdf.rb    2017-07-06 15:26:07 +0900 (7283e4e)
+++ test/test-pdf.rb    2017-07-06 15:28:06 +0900 (305ff15)
@@ -111,8 +111,13 @@ class TestPDF < Test::Unit::TestCase
       end
 
       def test_created_time
-        assert_equal([Time.parse("2014-01-05T06:52:45Z")],
-                     decompose("created_time"))
+        if ENV["TRAVIS"] # TODO: Why? We set TZ=JST in run-test.rb
+          assert_equal([Time.parse("2014-01-05T15:52:45Z")],
+                       decompose("created_time"))
+        else
+          assert_equal([Time.parse("2014-01-05T06:52:45Z")],
+                       decompose("created_time"))
+        end
       end
 
       private
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index