[SERVER-10270] jstests/apitest_db.js failing Created: 20/Jul/13  Updated: 11/Jul/16  Resolved: 20/Jul/13

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.5.2

Type: Bug Priority: Major - P3
Reporter: Tad Marshall Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

http://buildbot.mongodb.org/builders/Windows%2064-bit/builds/5614/steps/test_8/logs/stdio
http://buildlogs.mongodb.org/Windows%2064-bit/builds/5614/test/js/apitest_db.js

MongoDB shell version: 2.5.2-pre-
connecting to: 127.0.0.1:27999/test
MONGODB-CR
assert failed
Error: Printing Stack Trace
    at printStackTrace (src/mongo/shell/utils.js:37:15)
    at doassert (src/mongo/shell/assert.js:6:5)
    at assert (src/mongo/shell/assert.js:14:5)
    at D:\slave\Windows_64bit\mongo\jstests\apitest_db.js:67:5
Fri Jul 19 20:09:01.115 assert failed at src/mongo/shell/assert.js:7
failed to load: D:\slave\Windows_64bit\mongo\jstests\apitest_db.js

The thrown exception (expected) no longer contains the field that the test is looking for:

asserted = false;
try {
    db.setProfilingLevel(10);
    assert(false);
}
catch (e) { 
    asserted = true;
    assert(e.dbSetProfilingException);
}
assert( asserted, "should have asserted" );



 Comments   
Comment by auto [ 20/Jul/13 ]

Author:

{u'username': u'tadmarshall', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-10270 SERVER-10177 Fix failing jstests/apitest_db.js

Restore the exception object field that the test is looking for.
Branch: master
https://github.com/mongodb/mongo/commit/14e3de5ca929ef3187768146c7bf6a102f56db1f

Generated at Thu Feb 08 03:22:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.