summaryrefslogtreecommitdiff
path: root/dbtests
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-09-13 11:35:14 -0400
committerEliot Horowitz <eliot@10gen.com>2010-09-13 11:35:14 -0400
commitf412a116af8f1082e83c95d2dda65038c5a4e966 (patch)
tree362b50ecddc24b785d0ef729c9e1bb9b82976aa5 /dbtests
parent0b0247d5188c99e70f8939aaeb563d0f52ef6597 (diff)
downloadmongo-f412a116af8f1082e83c95d2dda65038c5a4e966.tar.gz
don't use exception on BlockingQueue timed pop
Diffstat (limited to 'dbtests')
-rw-r--r--dbtests/basictests.cpp7
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 );
}