added validate to client
This commit is contained in:
@@ -122,7 +122,10 @@ int main() {
|
||||
|
||||
//existing index
|
||||
assert( conn.findOne(ns, Query("{name:'eliot'}").hint("{name:1}")).hasElement("name") );
|
||||
}
|
||||
|
||||
// run validate
|
||||
assert( conn.validate( ns ) );
|
||||
}
|
||||
|
||||
cout << "client test finished!" << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user