Skip to content

Commit

Permalink
Hotfix for tests + some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Zubenko committed Nov 30, 2016
1 parent ee02d61 commit 9152761
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions phoenix-scala/app/services/actors/RemorseTimer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class RemorseTimer(implicit db: DB, ec: EC) extends Actor {
val query = for {
cordRefs * <~ orders.result
count * <~ orders.map(_.state).update(newState)
refNums = cordRefs.map(_.referenceNumber)
_ * <~ doOrMeh(count > 0, LogActivity.orderBulkStateChanged(newState, refNums))
refNums = cordRefs.map(_.referenceNumber)
_ * <~ doOrMeh(count > 0, LogActivity.orderBulkStateChanged(newState, refNums))
} yield count

RemorseTimerResponse(query.runTxn)
Expand Down
6 changes: 4 additions & 2 deletions phoenix-scala/test/integration/CartIntegrationTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,14 @@ class CartIntegrationTest
val attributes = LineItemAttributes(
GiftCardLineItemAttributes(senderName = "senderName",
recipientName = "recipientName",
recipientEmail = "[email protected]").some).some
recipientEmail = "[email protected]",
message = "message").some).some

val attributes2 = LineItemAttributes(
GiftCardLineItemAttributes(senderName = "senderName2",
recipientName = "recipientName2",
recipientEmail = "[email protected]").some).some
recipientEmail = "[email protected]",
message = "message2").some).some

def addGiftCardPayload(sku: String) =
Seq(UpdateLineItemsPayload(sku, 2, attributes), UpdateLineItemsPayload(sku, 1, attributes2))
Expand Down
3 changes: 2 additions & 1 deletion phoenix-scala/test/integration/CheckoutIntegrationTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class CheckoutIntegrationTest
val attributes = LineItemAttributes(
GiftCardLineItemAttributes(senderName = "senderName",
recipientName = "recipientName",
recipientEmail = "[email protected]").some).some
recipientEmail = "[email protected]",
message = "Boop").some).some

val addGiftCardPayload = Seq(UpdateLineItemsPayload("SKU-YAX", 2, attributes))
"should update attributes of order-line-items succesfully" in new Fixture {
Expand Down

0 comments on commit 9152761

Please sign in to comment.