We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d55460a commit ead942dCopy full SHA for ead942d
tests/integration/test_slurmctld.py
@@ -107,3 +107,16 @@ def test_fair_share_dampening_factor():
107
with pytest.raises(pyslurm.RPCError,
108
match=r"Invalid Dampening*"):
109
slurmctld.set_fair_share_dampening_factor(99999999)
110
+
111
112
+def test_statistics():
113
+ stats = slurmctld.diag()
114
+ assert stats.to_dict()
115
+ assert len(stats.rpcs_by_type) > 0
116
+ data_since = stats.data_since
117
118
+ slurmctld.Statistics.reset()
119
+ new_stats = slurmctld.Statistics.load()
120
+ assert new_stats.to_dict()
121
+ # Check that resetting it was actually sucessful.
122
+ assert data_since < new_stats.data_since
0 commit comments