From 361940a81fb4ca1bc9f85c2ee12c6d375dfc53b6 Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Sat, 17 Dec 2022 17:15:55 +0100 Subject: [PATCH] fix test_reentrant_queries by ensuring the write thread is still alive --- test/test_chunks_write.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/test_chunks_write.rb b/test/test_chunks_write.rb index a7988d40..4f0a8676 100644 --- a/test/test_chunks_write.rb +++ b/test/test_chunks_write.rb @@ -71,7 +71,6 @@ def test_put_delete_data end def test_reentrant_queries - skip "TODO: why does this test fail?" ntriples_file_path = "./test/data/nemo_ontology.ntriples" # Bypass in chunks @@ -87,8 +86,8 @@ def test_reentrant_queries tput = Thread.new { Goo.sparql_data_client.put_triples(ONT_ID_EXTRA, ntriples_file_path, mime_type="application/x-turtle") + sleep(1.5) } - sleep(1.5) count_queries = 0 tq = Thread.new { 5.times do @@ -112,8 +111,8 @@ def test_reentrant_queries tdelete = Thread.new { Goo.sparql_data_client.delete_graph(ONT_ID_EXTRA) + sleep(1.5) } - sleep(1.5) count_queries = 0 tq = Thread.new { 5.times do