Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1131

the result of db.dropDatabase is "true" but the database and it's contents still exist when I check from the terminal.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: MongoDB 3.4

      after(function(done){
          mongo.connect(db, function (err, db) {
            if(err) return done(err);
      
            db.dropDatabase(function (err, res){
              if(err) return done(err);
      
              console.log("result:", res); // output = "result: true" but the database is really still there.
              db.close(done);
            });
          });
       });
      

            Assignee:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Reporter:
            e-oj Emmanuel Olaojo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: