File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed 
src/semantic-router/pkg/cache Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff 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
165167test-semantic-router : build-router
166168	@echo " Testing semantic-router..." 
167169	@export LD_LIBRARY_PATH=${PWD} /candle-binding/target/release &&  \ 
Original file line number Diff line number Diff line change 1- 
21package  cache_test
32
43import  (
@@ -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  :=  ` 
104103connection: 
105104  host: "localhost" 
106105  port: 19530 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments