Skip to content

Commit

Permalink
Comply with ruby style guide for minitest
Browse files Browse the repository at this point in the history
  • Loading branch information
alexskr committed Aug 3, 2023
1 parent 1248500 commit 7d1846b
Show file tree
Hide file tree
Showing 2 changed files with 225 additions and 245 deletions.
33 changes: 16 additions & 17 deletions test/test_chunks_write.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@ def test_reentrant_queries
sleep(1.5)
count_queries = 0
tq = Thread.new {
5.times do
oq = "SELECT (count(?s) as ?c) WHERE { ?s a ?o }"
Goo.sparql_query_client.query(oq).each do |sol|
assert sol[:c].object > 0
end
count_queries += 1
end
5.times do
oq = "SELECT (count(?s) as ?c) WHERE { ?s a ?o }"
Goo.sparql_query_client.query(oq).each do |sol|
assert_operator 0, :<, sol[:c].object
end
count_queries += 1
end
}
tq.join
assert tput.alive?
assert_predicate tput, :alive?
assert_equal 5, count_queries
tput.join

Expand All @@ -110,13 +110,13 @@ def test_reentrant_queries
sleep(1.5)
count_queries = 0
tq = Thread.new {
5.times do
oq = "SELECT (count(?s) as ?c) WHERE { ?s a ?o }"
Goo.sparql_query_client.query(oq).each do |sol|
assert sol[:c].object > 0
end
count_queries += 1
end
5.times do
oq = "SELECT (count(?s) as ?c) WHERE { ?s a ?o }"
Goo.sparql_query_client.query(oq).each do |sol|
assert_operator 0, :<, sol[:c].object
end
count_queries += 1
end
}
tq.join
assert tdelete.alive?
Expand Down Expand Up @@ -144,7 +144,7 @@ def test_query_flood
50.times do |j|
oq = "SELECT (count(?s) as ?c) WHERE { ?s a ?o }"
Goo.sparql_query_client.query(oq).each do |sol|
assert sol[:c].object > 0
assert_operator 0, :<, sol[:c].object
end
end
}
Expand Down Expand Up @@ -182,6 +182,5 @@ def self.params_for_backend(method, graph_name, ntriples_file_path = nil)
end
params
end

end
end
Loading

0 comments on commit 7d1846b

Please sign in to comment.