Skip to content

Commit

Permalink
fix test_reentrant_queries by ensuring the write thread is still alive
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Dec 17, 2022
1 parent 8e0e46d commit 361940a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/test_chunks_write.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 361940a

Please sign in to comment.