Skip to content

Commit

Permalink
Disable logging in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanja-m committed Nov 23, 2024
1 parent 8ae599d commit d7f8386
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ subprojects {
apply(plugin = "java")

dependencies {
implementation(rootProject.libs.slf4j)
implementation(rootProject.libs.slf4j.api)
implementation(rootProject.libs.typesafe.config)

testImplementation(platform(rootProject.libs.junit.bom))
Expand Down
5 changes: 3 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[versions]
slf4j = "2.0.12"
slf4j = "2.0.16"
logback = "1.5.6"
junit-bom = "5.10.3"
typesafe-config = "1.4.3"
zero-allocation-hashing = "0.16"

[libraries]
slf4j = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" }
slf4j-api = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" }
slf4j-nop = { module = "org.slf4j:slf4j-nop", version.ref = "slf4j" }
logback = { module = "ch.qos.logback:logback-classic", version.ref = "logback" }
typesafe-config = { module = "com.typesafe:config", version.ref = "typesafe-config" }
zero-allocation-hashing = { module = "net.openhft:zero-allocation-hashing", version.ref = "zero-allocation-hashing" }
Expand Down
1 change: 1 addition & 0 deletions kiwi-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dependencies {
implementation(libs.slf4j.nop)
implementation(libs.zero.allocation.hashing)
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import kiwi.core.common.Bytes;
import kiwi.core.common.KeyValue;
import kiwi.core.storage.bitcask.BitcaskStore;
import kiwi.core.storage.bitcask.log.Record;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
Expand Down
13 changes: 0 additions & 13 deletions kiwi-core/src/test/resources/logback-test.xml

This file was deleted.

5 changes: 5 additions & 0 deletions kiwi-embedded/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<root level="OFF">
</root>
</configuration>

0 comments on commit d7f8386

Please sign in to comment.