rabbah commented on a change in pull request #3199: One tid for the whole 
system.
URL: 
https://github.com/apache/incubator-openwhisk/pull/3199#discussion_r182921693
 
 

 ##########
 File path: tests/src/test/scala/whisk/core/database/test/DbUtils.scala
 ##########
 @@ -45,13 +44,14 @@ import whisk.core.entity.types.EntityStore
  * operations with those that flow through the cache. To mitigate this, use 
unique asset
  * names in tests, and defer all cleanup to the end of a test suite.
  */
-trait DbUtils extends TransactionCounter {
+trait DbUtils {
   implicit val dbOpTimeout = 15 seconds
-  override val instanceOrdinal = 0
-  val instance = InstanceId(instanceOrdinal)
+  val instance = InstanceId(0)
   val docsToDelete = ListBuffer[(ArtifactStore[_], DocInfo)]()
   case class RetryOp() extends Throwable
 
+  def transid() = TransactionId.testing
 
 Review comment:
   As noted earlier a sequential counter here would be useful when looking at a 
test log. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to