File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/semantic-router/pkg/utils/classification Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments