MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / test02_write_only_workload

Method test02_write_only_workload

tests/flow/test_stress.py:151–176  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

149 pool.clear()
150
151 def test02_write_only_workload(self):
152 pool = Pool(nodes=3)
153 n_creations = 20000
154 n_node_deletions = 10000
155 n_edge_deletions = 10000
156
157 self.env.start()
158
159 # invoke queries
160 t1 = pool.apipe(merge_nodes_and_edges, graphs[0], n_creations)
161
162 t2 = pool.apipe(delete_nodes, graphs[1], n_node_deletions)
163
164 t3 = pool.apipe(delete_edges, graphs[2], n_edge_deletions)
165
166 # wait for processes to join
167 t1.wait()
168 t2.wait()
169 t3.wait()
170
171 # make sure we did not crash
172 conn = self.env.getConnection()
173 conn.ping()
174 conn.close()
175
176 pool.clear()
177
178 def test03_clean_shutdown(self):
179 # issue SHUTDOWN while traffic is generated

Callers

nothing calls this directly

Calls 3

startMethod · 0.80
closeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected