Skip to content

Fix tests#3

Merged
clems4ever merged 5 commits into
clems4ever:mainfrom
lein3000zzz:lein3000zzz
Feb 16, 2026
Merged

Fix tests#3
clems4ever merged 5 commits into
clems4ever:mainfrom
lein3000zzz:lein3000zzz

Conversation

@lein3000zzz

Copy link
Copy Markdown
Contributor

Fixed a conflict where the global ONNX Runtime environment was persisting between test cases after my #2 (sorry, i didn't foresee that - my original goal was to make the model work). Added DestroyOrtEnv() to allow manual lifecycle management of the ORT environment, ensuring tests can run in isolation without "already initialized" errors.

=== RUN   TestSingleSentenceEmbedding
--- PASS: TestSingleSentenceEmbedding (0.27s)
=== RUN   TestBatchEmbedding
--- PASS: TestBatchEmbedding (0.24s)
=== RUN   TestConsistentEmbeddingForSameSentence
--- PASS: TestConsistentEmbeddingForSameSentence (0.22s)
=== RUN   TestSingleVsBatchConsistency
--- PASS: TestSingleVsBatchConsistency (0.21s)
=== RUN   TestEmptyBatch
--- PASS: TestEmptyBatch (0.20s)
PASS

@clems4ever clems4ever merged commit 98aaab5 into clems4ever:main Feb 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants