Closed mattiasnilsen closed 8 years ago
I would say tests need to be written, since you changed how some of the core functionality of the lobby works.
I added some comments to the code, add some tests, but otherwise it looks fine.
Looks good, a bit bothered by the fact that most tests have to run multiple methods from the database module, but I suppose that is hard to get away from when dealing with a database.
Why are the games created with some weird string as name?
What should the default names for a game be then?
Something that isn't mega strange, like GameName or default or something
Perfect, will merge now :partly_sunny:
I have moved all information stored about a game into the database.
All functionality should work as expected however the tests does not always pass, they fail with an error like:
*** Failed! Exception: 'ConnectionError {errFunction = "query", errNumber = 1205, errMessage = "Lock wait timeout exceeded; try restarting transaction"}'
Because of this I have not created any new tests, more investigation is needed into correctly test code where the database is involved.
fixes #86