[ARVADOS] updated: b63b1c67513ee167aa579fa5182341d51e71d2aa

git at public.curoverse.com git at public.curoverse.com
Tue Mar 17 10:47:38 EDT 2015


Summary of changes:
 services/api/lib/db_current_time.rb | 2 +-
 services/api/test/unit/log_test.rb  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

       via  b63b1c67513ee167aa579fa5182341d51e71d2aa (commit)
      from  b0c5270a1a88ab2a19bfff5ced4e5e17f5264e9e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit b63b1c67513ee167aa579fa5182341d51e71d2aa
Author: Radhika Chippada <radhika at curoverse.com>
Date:   Tue Mar 17 10:27:35 2015 -0400

    5383: postgres current_timestamp is the start of transaction and clock_timestamp is the current time at the statement execution. updated db_current_time to use  clock_timestamp and reverted back all updates to log_test.rb

diff --git a/services/api/lib/db_current_time.rb b/services/api/lib/db_current_time.rb
index 120d5a4..5c97baa 100644
--- a/services/api/lib/db_current_time.rb
+++ b/services/api/lib/db_current_time.rb
@@ -1,5 +1,5 @@
 module DbCurrentTime
-  CURRENT_TIME_SQL = "SELECT CURRENT_TIMESTAMP"
+  CURRENT_TIME_SQL = "SELECT clock_timestamp()"
 
   def db_current_time
     ActiveRecord::Base.connection.select_value(CURRENT_TIME_SQL).to_time
diff --git a/services/api/test/unit/log_test.rb b/services/api/test/unit/log_test.rb
index 8642793..8c4267f 100644
--- a/services/api/test/unit/log_test.rb
+++ b/services/api/test/unit/log_test.rb
@@ -11,7 +11,7 @@ class LogTest < ActiveSupport::TestCase
   }
 
   def setup
-    @start_time = db_current_time
+    @start_time = Time.now
     @log_count = 1
   end
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list