From 5ba4d1c5ee290f73d6524e682265b0a110ccb218 Mon Sep 17 00:00:00 2001 From: To-om Date: Tue, 8 Sep 2020 09:13:09 +0200 Subject: [PATCH] #1514 Fix test --- thehive/test/org/thp/thehive/services/AlertSrvTest.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thehive/test/org/thp/thehive/services/AlertSrvTest.scala b/thehive/test/org/thp/thehive/services/AlertSrvTest.scala index 365c95dd27..a5a1a3ed6a 100644 --- a/thehive/test/org/thp/thehive/services/AlertSrvTest.scala +++ b/thehive/test/org/thp/thehive/services/AlertSrvTest.scala @@ -117,7 +117,7 @@ class AlertSrvTest extends PlaySpecification with TestAppBuilder { alert <- app[AlertSrv].getOrFail("testType;testSource;ref4") _ <- app[AlertSrv].addObservable(alert, similarObs) } yield () - } must beAFailedTry.withThrowable[CreateError] + } must beASuccessfulTry() app[Database].tryTransaction { implicit graph => for { @@ -127,8 +127,8 @@ class AlertSrvTest extends PlaySpecification with TestAppBuilder { } must beASuccessfulTry app[Database].roTransaction { implicit graph => - app[AlertSrv].get("testType;testSource;ref1").observables.filterOnData("perdu.com").filterOnType("domain").exists - } must beTrue + app[AlertSrv].get("testType;testSource;ref1").observables.filterOnData("perdu.com").filterOnType("domain").tags.toSeq.map(_.toString) + } must contain("tag10") } "update custom fields" in testApp { app =>