Skip to content

Commit de87039

Browse files
committed
feat(bump): working on next release
1 parent b968934 commit de87039

5 files changed

Lines changed: 798 additions & 828 deletions

File tree

‎src/vuln_spec/retriever.rs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,13 @@ pub struct IndexStats {
341341
#[cfg(test)]
342342
mod tests {
343343
use super::*;
344+
use std::sync::Mutex;
345+
346+
static INDEX_LOCK: Mutex<()> = Mutex::new(());
344347

345348
#[test]
346349
fn test_build_embedding_index() {
350+
let _guard = INDEX_LOCK.lock().unwrap();
347351
let specs = vec![
348352
SecuritySpecification {
349353
id: "spec-1".to_string(),
@@ -428,6 +432,7 @@ mod tests {
428432

429433
#[test]
430434
fn test_hybrid_search() {
435+
let _guard = INDEX_LOCK.lock().unwrap();
431436
// Clear index first
432437
clear_index();
433438

@@ -449,6 +454,7 @@ mod tests {
449454

450455
#[test]
451456
fn test_clear_index() {
457+
let _guard = INDEX_LOCK.lock().unwrap();
452458
let specs = vec![SecuritySpecification {
453459
id: "spec-1".to_string(),
454460
vuln_type: "CWE-79".to_string(),

0 commit comments

Comments
 (0)