File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ func (dbs *DBServer) start() {
6969 dbs .server .Stderr = & dbs .output
7070 err = dbs .server .Start ()
7171 if err != nil {
72+ // print error to facilitate troubleshooting as the panic will be caught in a panic handler
73+ fmt .Fprintf (os .Stderr , "mongod failed to start: %v\n " ,err )
7274 panic (err )
7375 }
7476 dbs .tomb .Go (dbs .monitor )
Original file line number Diff line number Diff line change @@ -77,9 +77,7 @@ func (s *S) TestStop(c *C) {
7777 server .Stop ()
7878
7979 // Server should not be running anymore.
80- session , err = mgo .DialWithTimeout (addr , 500 * time .Millisecond )
81- c .Assert (err , IsNil )
82-
80+ session , _ = mgo .DialWithTimeout (addr , 500 * time .Millisecond )
8381 if session != nil {
8482 session .Close ()
8583 c .Fatalf ("Stop did not stop the server" )
You can’t perform that action at this time.
0 commit comments