Skip to content

Commit

Permalink
Merge "Fix sandesh_msg_test.py" into R3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jul 29, 2016
2 parents f941948 + 2343ea3 commit 9d7773b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/python/pysandesh/test/sandesh_msg_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,12 @@ def test_systemlog_msg_buffer_threshold(self):
messages_sent_dropped_rate_limited)
# try to set negative values to the rate limit
SandeshSystem.set_sandesh_send_rate_limit(-10)
self.assertEqual(get_sandesh_send_rate_limit(), 10)
self.assertEqual(SandeshSystem.get_sandesh_send_rate_limit(), 10)
# end test_systemlog_msg_buffer_threshold

def test_sandesh_queue_level_drop(self):
# Increase rate limit
SandeshSystem.set_sandesh_send_rate_limit(100)
levels = list(range(SandeshLevel.SYS_EMERG,SandeshLevel.SYS_DEBUG))
queue_level_drop = 0
for send_level in levels:
Expand Down

0 comments on commit 9d7773b

Please sign in to comment.