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

XMLWordPrintableJSON

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

      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
            Reporter:
            Emmanuel Olaojo
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: