diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-09-13 11:35:14 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-09-13 11:35:14 -0400 |
commit | f412a116af8f1082e83c95d2dda65038c5a4e966 (patch) | |
tree | 362b50ecddc24b785d0ef729c9e1bb9b82976aa5 /dbtests | |
parent | 0b0247d5188c99e70f8939aaeb563d0f52ef6597 (diff) | |
download | mongo-f412a116af8f1082e83c95d2dda65038c5a4e966.tar.gz |
don't use exception on BlockingQueue timed pop
Diffstat (limited to 'dbtests')
-rw-r--r-- | dbtests/basictests.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/dbtests/basictests.cpp b/dbtests/basictests.cpp index 6be747e786a..9a50d8393a3 100644 --- a/dbtests/basictests.cpp +++ b/dbtests/basictests.cpp @@ -502,11 +502,8 @@ namespace BasicTests { void run(){ BlockingQueue<int> q; Timer t; - try { - q.blockingPop( 5 ); - } - catch ( BlockingQueue<int>::Timeout& ){ - } + int x; + ASSERT( ! q.blockingPop( x , 5 ) ); ASSERT( t.seconds() > 3 && t.seconds() < 9 ); } |