Skip to content

Commit

Permalink
Try to fix flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostrzyciel committed Oct 11, 2023
1 parent a0d76c5 commit 673b990
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import org.apache.jena.graph.Graph
import org.apache.jena.riot.{Lang, RDFDataMgr, RDFParser}
import org.apache.jena.sparql.core.DatasetGraph
import org.apache.jena.sparql.util.IsoMatcher
import org.apache.jena.sys.JenaSystem
import org.apache.pekko.actor.ActorSystem
import org.apache.pekko.stream.scaladsl.*
import org.scalatest.concurrent.ScalaFutures
Expand All @@ -23,6 +24,8 @@ class CrossStreamingSpec extends AnyWordSpec, Matchers, ScalaFutures:
implicit val actorSystem: ActorSystem = ActorSystem()
implicit val ec: ExecutionContext = actorSystem.getDispatcher
implicit val defaultPatience: PatienceConfig = PatienceConfig(timeout = 5.seconds, interval = 50.millis)

JenaSystem.init()

private val implementations: Seq[(String, TestStream)] = Seq(
("Jena", JenaTestStream),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package eu.ostrzyciel.jelly.integration_tests.io

import eu.ostrzyciel.jelly.core.JellyOptions
import eu.ostrzyciel.jelly.core.proto.v1.RdfStreamOptions
import org.apache.jena.sys.JenaSystem
import org.apache.pekko.actor.ActorSystem
import org.scalatest.concurrent.ScalaFutures
import org.scalatest.matchers.should.Matchers
Expand All @@ -15,6 +16,8 @@ import java.io.{ByteArrayInputStream, ByteArrayOutputStream, File, FileInputStre
class IoSerDesSpec extends AnyWordSpec, Matchers, ScalaFutures:
implicit val as: ActorSystem = ActorSystem("test")

JenaSystem.init()

val casesTriples: Seq[(String, File)] = Seq[String](
"weather.nt", "p2_ontology.nt", "nt-syntax-subm-01.nt", "rdf-star.nt", "rdf-star-blanks.nt"
).map(name => (
Expand Down

0 comments on commit 673b990

Please sign in to comment.