Skip to content

Commit

Permalink
simplify collection tests main function
Browse files Browse the repository at this point in the history
Co-authored-by: Sönke Ludwig <[email protected]>
  • Loading branch information
gedaiu and s-ludwig authored Jan 27, 2025
1 parent 24d88cb commit 4278eee
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tests/mongodb/collection/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,10 @@ void runTest(ushort port)
chunks.drop;
}

int main(string[] args)
void main(string[] args)
{
int ret = 0;
ushort port = args.length > 1
? args[1].to!ushort
: MongoClientSettings.defaultPort;
runTask(() nothrow {
try runTest(port);
catch (Exception e) assert(false, e.toString());
finally exitEventLoop(true);
});
runEventLoop();
return ret;
runTest(port);
}

0 comments on commit 4278eee

Please sign in to comment.