minor reordering to minimize time spent profiling

This commit is contained in:
Jim Menard 2009-01-08 06:49:26 -05:00
parent efd31a8bc5
commit 98bbc34fac
1 changed files with 1 additions and 2 deletions

View File

@ -41,6 +41,7 @@ class AdminTest < Test::Unit::TestCase
# Perform at least one query while profiling so we have something to see.
@admin.profiling_level = :all
@coll.find()
@admin.profiling_level = :off
info = @admin.profiling_info
assert_kind_of Array, info
@ -49,8 +50,6 @@ class AdminTest < Test::Unit::TestCase
assert_kind_of String, first['info']
assert_kind_of Time, first['ts']
assert_kind_of Numeric, first['millis']
@admin.profiling_level = :off
end
def test_validate_collection