minor reordering to minimize time spent profiling
This commit is contained in:
parent
efd31a8bc5
commit
98bbc34fac
@ -41,6 +41,7 @@ class AdminTest < Test::Unit::TestCase
|
|||||||
# Perform at least one query while profiling so we have something to see.
|
# Perform at least one query while profiling so we have something to see.
|
||||||
@admin.profiling_level = :all
|
@admin.profiling_level = :all
|
||||||
@coll.find()
|
@coll.find()
|
||||||
|
@admin.profiling_level = :off
|
||||||
|
|
||||||
info = @admin.profiling_info
|
info = @admin.profiling_info
|
||||||
assert_kind_of Array, info
|
assert_kind_of Array, info
|
||||||
@ -49,8 +50,6 @@ class AdminTest < Test::Unit::TestCase
|
|||||||
assert_kind_of String, first['info']
|
assert_kind_of String, first['info']
|
||||||
assert_kind_of Time, first['ts']
|
assert_kind_of Time, first['ts']
|
||||||
assert_kind_of Numeric, first['millis']
|
assert_kind_of Numeric, first['millis']
|
||||||
|
|
||||||
@admin.profiling_level = :off
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_validate_collection
|
def test_validate_collection
|
||||||
|
Loading…
Reference in New Issue
Block a user