MCPcopy
hub / github.com/redis/redis-py / test_config_resetstat

Method test_config_resetstat

tests/test_cluster.py:1810–1821  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

1808 r.debug_segfault()
1809
1810 def test_config_resetstat(self, r):
1811 node = r.get_primaries()[0]
1812 r.ping(target_nodes=node)
1813 prior_commands_processed = int(
1814 r.info(target_nodes=node)["total_commands_processed"]
1815 )
1816 assert prior_commands_processed >= 1
1817 r.config_resetstat(target_nodes=node)
1818 reset_commands_processed = int(
1819 r.info(target_nodes=node)["total_commands_processed"]
1820 )
1821 assert reset_commands_processed < prior_commands_processed
1822
1823 @skip_if_server_version_lt("6.2.0")
1824 def test_client_trackinginfo(self, r):

Callers

nothing calls this directly

Calls 4

config_resetstatMethod · 0.80
get_primariesMethod · 0.45
pingMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected