Dears,
I’ve been search on the Internet for a while. But most people are
discuss about how to fix the request time out issue.
My purpose is to write a test to verified the situation that we use the
Read-only community to configure the MIB object. so the expect behavior
is that we’ll get request timeout.
Any suggestion how could I detect the request timeout message?
I was using SNMP-1.1.0.
Regards,
Jacob
Jacob Su wrote in post #1068226:
Dears,
I’ve been search on the Internet for a while. But most people are
discuss about how to fix the request time out issue.
My purpose is to write a test to verified the situation that we use the
Read-only community to configure the MIB object. so the expect behavior
is that we’ll get request timeout.
Any suggestion how could I detect the request timeout message?
I was using SNMP-1.1.0.
What does the library do today under these circumstances? Does it raise
a Timeout::Error?
If so, you just test for that.
assert_raises(Timeout::Error) {
… do stuff with SNMP
}