rabbah commented on a change in pull request #3174: Change log level 
dynamically (updated)
URL: 
https://github.com/apache/incubator-openwhisk/pull/3174#discussion_r161585196
 
 

 ##########
 File path: tests/src/test/scala/whisk/core/entity/test/SchemaTests.scala
 ##########
 @@ -70,6 +69,46 @@ class SchemaTests extends FlatSpec with BeforeAndAfter with 
ExecHelpers with Mat
     a[DeserializationException] should be thrownBy 
Privilege.serdes.read("???".toJson)
   }
 
+  behavior of "TransactionId"
+
+  it should "serdes a transaction id without extraLogging parameter" in {
+    val txId = 4711
+    val txWithoutExtraLogging = TransactionId(txId)
+
+    // test serialization
+    val serializedTxIdWithoutParameter = 
TransactionId.serdes.write(txWithoutExtraLogging)
 
 Review comment:
   ```scala
   TransactionId.serdes.write(txWithoutExtraLogging) shouldBe 
JsArray(Vector(JsNumber(tid.meta.id), JsNumber(tid.meta.start.toEpochMilli))
   ```

----------------------------------------------------------------
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