dbcli / mssql-cli

A command-line client for SQL Server with auto-completion and syntax highlighting
BSD 3-Clause "New" or "Revised" License
1.35k stars 191 forks source link

Added retry logic for create db #369

Closed ellbosch closed 4 years ago

ellbosch commented 4 years ago

Fixes #280.

I added retry logic to the create db method used for our tests. In the past this method would occasionally fail due to network issues, so I'm hoping that the retry logic will fix this issue.

ellbosch commented 4 years ago

Latest commit will log a warning whenever a DB create execution fails.

I also modified the error message at the end to no longer print values since they were all set to None anyways, but thankfully pytest already prints all local variables to stderror.