Skip to content

Commit

Permalink
#1514 Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Sep 8, 2020
1 parent a6d524c commit 5ba4d1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions thehive/test/org/thp/thehive/services/AlertSrvTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 =>
Expand Down

0 comments on commit 5ba4d1c

Please # to comment.