Skip to content

Commit 2fb44f5

Browse files
committed
pre-commit fix
Signed-off-by: Huamin Chen <[email protected]>
1 parent 43a5949 commit 2fb44f5

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ test-jailbreak-classifier: rust
162162
cd src/training/prompt_guard_fine_tuning && CGO_ENABLED=1 go run jailbreak_classifier_verifier.go
163163

164164
# Unit test semantic-router
165+
# By default, Milvus tests are skipped. To enable them, set SKIP_MILVUS_TESTS=false
166+
# Example: make test-semantic-router SKIP_MILVUS_TESTS=false
165167
test-semantic-router: build-router
166168
@echo "Testing semantic-router..."
167169
@export LD_LIBRARY_PATH=${PWD}/candle-binding/target/release && \

src/semantic-router/pkg/cache/cache_test.go

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
package cache_test
32

43
import (
@@ -89,18 +88,18 @@ var _ = Describe("Cache Package", func() {
8988
})
9089
})
9190

92-
Context("with Milvus backend", func() {
93-
var milvusConfigPath string
91+
Context("with Milvus backend", func() {
92+
var milvusConfigPath string
9493

95-
BeforeEach(func() {
96-
// Skip Milvus tests if environment variable is set
97-
if os.Getenv("SKIP_MILVUS_TESTS") == "true" {
98-
Skip("Milvus tests skipped due to SKIP_MILVUS_TESTS=true")
99-
}
100-
101-
// Create a test Milvus configuration file
102-
milvusConfigPath = filepath.Join(tempDir, "milvus.yaml")
103-
milvusConfig := `
94+
BeforeEach(func() {
95+
// Skip Milvus tests if environment variable is set
96+
if os.Getenv("SKIP_MILVUS_TESTS") == "true" {
97+
Skip("Milvus tests skipped due to SKIP_MILVUS_TESTS=true")
98+
}
99+
100+
// Create a test Milvus configuration file
101+
milvusConfigPath = filepath.Join(tempDir, "milvus.yaml")
102+
milvusConfig := `
104103
connection:
105104
host: "localhost"
106105
port: 19530

0 commit comments

Comments
 (0)