more debugging

This commit is contained in:
Mike Dirolf 2009-03-13 15:05:49 -04:00
parent c706e79813
commit 2500996ce4
1 changed files with 53 additions and 39 deletions

View File

@ -41,7 +41,10 @@ class CursorTest < Test::Unit::TestCase
end
def test_refill_via_get_more
begin
assert_equal 1, @@coll.count
1000.times { |i|
assert_equal 1 + i, @@coll.count
@@coll.insert('a' => i)
}
@ -62,14 +65,21 @@ class CursorTest < Test::Unit::TestCase
assert_equal count, count2
assert_equal 499501, count
rescue Test::Unit::AssertionFailedError => ex
p @@db.collection_names
Process.exit 1
end
end
def test_refill_via_get_more_alt_coll
begin
coll = @@db.collection('test-alt-coll')
coll.clear
coll.insert('a' => 1) # collection not created until it's used
assert_equal 1, coll.count
1000.times { |i|
assert_equal 1 + i, coll.count
coll.insert('a' => i)
}
@ -90,6 +100,10 @@ class CursorTest < Test::Unit::TestCase
assert_equal count, count2
assert_equal 499501, count
rescue Test::Unit::AssertionFailedError => ex
p @@db.collection_names
Process.exit 1
end
end
def test_close_after_query_sent