Skip to content

Commit d05c2f9

Browse files
committed
fix: unified_classifier_test
Signed-off-by: OneZero-Y <[email protected]>
1 parent 3761080 commit d05c2f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/semantic-router/pkg/utils/classification/unified_classifier_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ func TestUnifiedClassifier_Integration(t *testing.T) {
281281
return
282282
}
283283

284-
if !classifier.IsInitialized() {
284+
if classifier == nil || !classifier.IsInitialized() {
285285
t.Skip("Skipping integration tests - classifier not initialized")
286286
return
287287
}
@@ -435,7 +435,7 @@ func BenchmarkUnifiedClassifier_RealModels(b *testing.B) {
435435
return
436436
}
437437

438-
if !classifier.IsInitialized() {
438+
if classifier == nil || !classifier.IsInitialized() {
439439
b.Skip("Skipping benchmark - classifier not initialized")
440440
return
441441
}
@@ -463,7 +463,7 @@ func BenchmarkUnifiedClassifier_BatchSizeComparison(b *testing.B) {
463463
return
464464
}
465465

466-
if !classifier.IsInitialized() {
466+
if classifier == nil || !classifier.IsInitialized() {
467467
b.Skip("Skipping benchmark - classifier not initialized")
468468
return
469469
}

0 commit comments

Comments
 (0)