minor: subsequent initialization should fail silently (#79)

This commit is contained in:
Qinren Zhou
2026-02-06 21:16:08 +08:00
committed by GitHub
parent ec26525b38
commit 0b9bd34354
3 changed files with 7 additions and 35 deletions
+3 -3
View File
@@ -122,10 +122,10 @@ class TestDbConfigInitialization:
)
@run_in_subprocess
def test_repeated_initialization_runtime_error(self):
def test_repeated_initialization(self):
# Calling init() repeatedly is allowed:
# it succeeds but becomes a no-op after the first successful init()
zvec.init()
with pytest.raises(RuntimeError):
zvec.init()
class TestDbConfigMemoryLimitValidation: