Skip to content

Commit

Permalink
Truncate to millis in test
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergrabinski committed Sep 27, 2023
1 parent 891db0c commit 41d879b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
package ch.epfl.bluebrain.nexus.delta.plugins.blazegraph.slowqueries

import ch.epfl.bluebrain.nexus.delta.plugins.blazegraph.slowqueries.BlazegraphSlowQueryStoreSuite._
import ch.epfl.bluebrain.nexus.delta.plugins.blazegraph.slowqueries.model.BlazegraphSlowQuery
import ch.epfl.bluebrain.nexus.delta.rdf.IriOrBNode.Iri
import ch.epfl.bluebrain.nexus.delta.rdf.query.SparqlQuery
import ch.epfl.bluebrain.nexus.delta.sdk.views.ViewRef
import ch.epfl.bluebrain.nexus.delta.sourcing.model.{Identity, Label, ProjectRef}
import ch.epfl.bluebrain.nexus.delta.sourcing.postgres.Doobie
import ch.epfl.bluebrain.nexus.testkit.IOFixedClock
import ch.epfl.bluebrain.nexus.testkit.bio.BioSuite
import ch.epfl.bluebrain.nexus.delta.sourcing.postgres.Doobie
import munit.AnyFixture

import java.time.temporal.ChronoUnit
import java.time.{Duration, Instant}
import scala.concurrent.duration.DurationInt
import BlazegraphSlowQueryStoreSuite._

class BlazegraphSlowQueryStoreSuite
extends BioSuite
Expand All @@ -31,7 +32,7 @@ class BlazegraphSlowQueryStoreSuite
SparqlQuery(""),
failed = true,
1.second,
Instant.now(),
Instant.now().truncatedTo(ChronoUnit.MILLIS),
Identity.User("Ted Lasso", Label.unsafe("epfl"))
)

Expand Down

0 comments on commit 41d879b

Please sign in to comment.