mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 09:04:19 +01:00
adding limbo quit to cleanly quit the subprocess
This commit is contained in:
@@ -57,6 +57,7 @@ def test_uuid():
|
|||||||
validate_string_uuid,
|
validate_string_uuid,
|
||||||
"scalar alias's are registered properly",
|
"scalar alias's are registered properly",
|
||||||
)
|
)
|
||||||
|
limbo.quit()
|
||||||
|
|
||||||
|
|
||||||
def true(res):
|
def true(res):
|
||||||
@@ -104,6 +105,7 @@ def test_regexp():
|
|||||||
"select regexp_replace('the year is 2021', '([0-9]+)', '$1 or 2050') = 'the year is 2021 or 2050';",
|
"select regexp_replace('the year is 2021', '([0-9]+)', '$1 or 2050') = 'the year is 2021 or 2050';",
|
||||||
true,
|
true,
|
||||||
)
|
)
|
||||||
|
limbo.quit()
|
||||||
|
|
||||||
|
|
||||||
def validate_median(res):
|
def validate_median(res):
|
||||||
@@ -163,6 +165,7 @@ def test_aggregates():
|
|||||||
limbo.run_test_fn(
|
limbo.run_test_fn(
|
||||||
"SELECT percentile_disc(value, 0.55) from test;", validate_percentile_disc
|
"SELECT percentile_disc(value, 0.55) from test;", validate_percentile_disc
|
||||||
)
|
)
|
||||||
|
limbo.quit()
|
||||||
|
|
||||||
|
|
||||||
# Encoders and decoders
|
# Encoders and decoders
|
||||||
@@ -303,6 +306,7 @@ def test_crypto():
|
|||||||
validate_url_decode,
|
validate_url_decode,
|
||||||
"url should decode correctly",
|
"url should decode correctly",
|
||||||
)
|
)
|
||||||
|
limbo.quit()
|
||||||
|
|
||||||
|
|
||||||
def test_series():
|
def test_series():
|
||||||
@@ -329,6 +333,7 @@ def test_series():
|
|||||||
"SELECT * FROM generate_series(10, 1, -2);",
|
"SELECT * FROM generate_series(10, 1, -2);",
|
||||||
lambda res: res == "10\n8\n6\n4\n2",
|
lambda res: res == "10\n8\n6\n4\n2",
|
||||||
)
|
)
|
||||||
|
limbo.quit()
|
||||||
|
|
||||||
|
|
||||||
def test_kv():
|
def test_kv():
|
||||||
@@ -394,6 +399,7 @@ def test_kv():
|
|||||||
limbo.run_test_fn(
|
limbo.run_test_fn(
|
||||||
"select count(*) from t;", lambda res: "4" == res, "four rows remain"
|
"select count(*) from t;", lambda res: "4" == res, "four rows remain"
|
||||||
)
|
)
|
||||||
|
limbo.quit()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user