Skip to content

Commit

Permalink
Cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfrog26 committed Mar 24, 2024
1 parent 8d24eff commit c0db5a7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions all/src/test/scala/spec/SimpleSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ class SimpleSpec extends AsyncWordSpec with AsyncIOSpec with Matchers {
p.age should be(20)
}
}
"commit data" in {
"commit new data" in {
db.people.commit()
}
"list all documents" in {
"list new documents" in {
db.people.query.search().compile.toList.map { results =>
results.length should be(1)
val doc = results.head
Expand Down
2 changes: 1 addition & 1 deletion benchmark/src/main/scala/benchmark/IMDBBenchmark.scala
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ object IMDBBenchmark { // extends IOApp {
private def process[T](file: File, map2t: Map[String, String] => T, persist: T => IO[Unit]): IO[Int] = IO {
val reader = new BufferedReader(new FileReader(file))
val counter = new AtomicInteger(0)
val concurrency = 16
val concurrency = 32
try {
val keys = reader.readLine().split('\t').toList

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ object LightDBImplementation extends BenchmarkImplementation {

object db extends LightDB(directory = Some(Paths.get("imdb"))) with LuceneIndexerSupport with MultiHaloSupport {
override protected def haloIndexThreads: Int = 10
override protected def haloMaxFileSize: Int = 1024 * 1024 * 10 // 10 meg
override protected def haloMaxFileSize: Int = 1024 * 1024 * 100 // 100 meg

val titleAka: Collection[TitleAkaLDB] = collection("titleAka", TitleAkaLDB)
val titleBasics: Collection[TitleBasicsLDB] = collection("titleBasics", TitleBasicsLDB)
Expand Down
10 changes: 5 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ lazy val lucene = project.in(file("lucene"))
"org.apache.lucene" % "lucene-core" % luceneVersion,
"org.apache.lucene" % "lucene-queryparser" % luceneVersion,
"org.scalatest" %% "scalatest" % scalaTestVersion % Test,
"org.typelevel" %%% "cats-effect-testing-scalatest" % catsEffectTestingVersion % Test
"org.typelevel" %% "cats-effect-testing-scalatest" % catsEffectTestingVersion % Test
)
)

Expand All @@ -109,8 +109,8 @@ lazy val halo = project.in(file("halo"))
libraryDependencies ++= Seq(
"com.outr" %% "scribe-slf4j" % scribeVersion,
"com.github.yahoo" % "HaloDB" % haloDBVersion,
"org.scalatest" %%% "scalatest" % scalaTestVersion % Test,
"org.typelevel" %%% "cats-effect-testing-scalatest" % catsEffectTestingVersion % Test
"org.scalatest" %% "scalatest" % scalaTestVersion % Test,
"org.typelevel" %% "cats-effect-testing-scalatest" % catsEffectTestingVersion % Test
),
fork := true
)
Expand All @@ -122,7 +122,7 @@ lazy val mapdb = project.in(file("mapdb"))
libraryDependencies ++= Seq(
"org.mapdb" % "mapdb" % "3.1.0",
"org.scalatest" %% "scalatest" % scalaTestVersion % Test,
"org.typelevel" %%% "cats-effect-testing-scalatest" % catsEffectTestingVersion % Test
"org.typelevel" %% "cats-effect-testing-scalatest" % catsEffectTestingVersion % Test
),
fork := true
)
Expand All @@ -133,7 +133,7 @@ lazy val all = project.in(file("all"))
name := s"$projectName-all",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % scalaTestVersion % Test,
"org.typelevel" %%% "cats-effect-testing-scalatest" % catsEffectTestingVersion % Test
"org.typelevel" %% "cats-effect-testing-scalatest" % catsEffectTestingVersion % Test
),
fork := true
)
Expand Down

0 comments on commit c0db5a7

Please sign in to comment.