SSPkrolik / nimongo

Pure Nim lang MongoDB driver
http://sspkrolik.github.io/nimongo
MIT License
101 stars 20 forks source link

Order of tests in administration test suite #1

Closed oderwat closed 8 years ago

oderwat commented 9 years ago

Hi... I am checking out your mongodb module but struggle because if I run the mongotest.nim file I get an error on listDatabases because in an otherwise empty MongoDB server there is nothing to list and an error emerges from that. I reordered list and drop which makes more sense in my opinion. What do you think?

SSPkrolik commented 9 years ago

I think that's a badly written test. Tests must be independent, and order must not play any role here.

SSPkrolik commented 8 years ago

Fixed with slightly updated test suite