File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
crates/semantic_search_client/tests Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ fn test_add_context_from_path_with_directory() {
50
50
#[ test]
51
51
fn test_add_context_from_path_with_file ( ) {
52
52
// Skip this test in CI environments
53
- if env:: var ( "CI" ) . is_ok ( ) {
53
+ if env:: var ( "MEMORY_BANK_USE_REAL_EMBEDDERS" ) . is_err ( ) {
54
+ println ! ( "Skipping test: MEMORY_BANK_USE_REAL_EMBEDDERS not set" ) ;
55
+ assert ! ( true ) ;
54
56
return ;
55
57
}
56
58
@@ -87,6 +89,11 @@ fn test_add_context_from_path_with_file() {
87
89
88
90
#[ test]
89
91
fn test_add_context_from_path_with_invalid_path ( ) {
92
+ if env:: var ( "MEMORY_BANK_USE_REAL_EMBEDDERS" ) . is_err ( ) {
93
+ println ! ( "Skipping test: MEMORY_BANK_USE_REAL_EMBEDDERS not set" ) ;
94
+ assert ! ( true ) ;
95
+ return ;
96
+ }
90
97
// Create a temporary directory for the test
91
98
let temp_dir = env:: temp_dir ( ) . join ( "memory_bank_test_invalid" ) ;
92
99
let base_dir = temp_dir. join ( "memory_bank" ) ;
@@ -115,7 +122,9 @@ fn test_add_context_from_path_with_invalid_path() {
115
122
#[ test]
116
123
fn test_backward_compatibility ( ) {
117
124
// Skip this test in CI environments
118
- if env:: var ( "CI" ) . is_ok ( ) {
125
+ if env:: var ( "MEMORY_BANK_USE_REAL_EMBEDDERS" ) . is_err ( ) {
126
+ println ! ( "Skipping test: MEMORY_BANK_USE_REAL_EMBEDDERS not set" ) ;
127
+ assert ! ( true ) ;
119
128
return ;
120
129
}
121
130
You can’t perform that action at this time.
0 commit comments