fix for GRA-1350

This commit is contained in:
Matthew R Kasun
2023-03-08 16:44:20 -05:00
parent 1de0c14b83
commit cb7804aafb
3 changed files with 15 additions and 1 deletions

View File

@@ -41,6 +41,10 @@ func TestCheckPorts(t *testing.T) {
ListenPort: 51830,
ProxyListenPort: 51730,
}
//not sure why this initialization is required but without it
// RemoveHost returns database is closed
database.InitializeDatabase()
RemoveHost(&h)
CreateHost(&h)
t.Run("no change", func(t *testing.T) {
is := is.New(t)