From: Brian Candler Date: 2012-07-11T21:55:30+09:00 Subject: Re: SNMP detect Request Time out. 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 } -- Posted via http://www.ruby-forum.com/.