Skip to content

Commit

Permalink
Fix test compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexklibisz committed Nov 19, 2023
1 parent c6a67a7 commit c7be4b1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import scala.util.Random

class L2LshSuite extends AnyFunSuite with Matchers {

implicit val rng = new Random(0)
implicit val rng: Random = new Random(0)

test("produces exactly L hashes with probes = 0") {
val vec = Vec.DenseFloat.random(10)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class PanamaFloatVectorOpsSpec extends AnyFreeSpec with Matchers {
private val dfvo = new DefaultFloatVectorOps
private val pfvo = new PanamaFloatVectorOps
private val seed = System.currentTimeMillis()
private implicit val rng = new Random(seed)
private implicit val rng: Random = new Random(seed)
info(s"Testing with seed $seed")

private def compare(f1: Double, f2: Double) = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import scala.util.Random

class CloseIndexRegressionSuite extends AsyncFunSuite with Matchers with ElasticAsyncClient {

implicit val rng = new Random(0)
implicit val rng: Random = new Random(0)

test("close index without elastiknn setting") {
val index = "issue-215-close-no-elastiknn"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ExactSimilarityFunctionSuite extends AnyFunSpec with Matchers {
private val reps = 1000
private val tol = 1e-7
private val seed = System.currentTimeMillis()
private implicit val rng = new Random(seed)
private implicit val rng: Random = new Random(seed)
info(s"Testing with seed $seed")

describe("L2 Similarity") {
Expand Down

0 comments on commit c7be4b1

Please sign in to comment.