Skip to content
Snippets Groups Projects
Verified Commit 67a1fb83 authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

test: searching for yay now returns a ruby package

Make the search term more likely to return nothing at all.
parent c8d9eeb1
No related branches found
No related tags found
No related merge requests found
Pipeline #92934 failed
...@@ -66,20 +66,20 @@ def get_db_pkgcache(): ...@@ -66,20 +66,20 @@ def get_db_pkgcache():
def test_localdb_segfault(): def test_localdb_segfault():
localdb = get_localdb() localdb = get_localdb()
collect() collect()
x = localdb.search('yay') x = localdb.search('thiscannotbefoundatall')
assert x == [] assert x == []
def test_syncdb_segfault(): def test_syncdb_segfault():
syncdb = get_syncdb() syncdb = get_syncdb()
collect() collect()
assert syncdb.search('yay') == [] assert syncdb.search('thiscannotbefoundatall') == []
def test_register_syncdb_segfault(): def test_register_syncdb_segfault():
syncdb = register_syncdb() syncdb = register_syncdb()
collect() collect()
assert syncdb.search('yay') == [] assert syncdb.search('thiscannotbefoundatall') == []
# Package tests, where the DB goes out of scope # Package tests, where the DB goes out of scope
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment