mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
Fix MySQL unit tests
This commit is contained in:
parent
12b623a2a5
commit
078999fa0d
1 changed files with 5 additions and 2 deletions
|
|
@ -72,8 +72,11 @@ func NewTestDBW(db DbClient) DBWrapper {
|
|||
}
|
||||
|
||||
func TestNewDBWrapper(t *testing.T) {
|
||||
_, err := NewDBWrapper("asdasd")
|
||||
assert.Error(t, err)
|
||||
dbw, err := NewDBWrapper("asdasd")
|
||||
if err == nil {
|
||||
assert.False(t, dbw.checkConnection(false), "DBWrapper should not be connected")
|
||||
}
|
||||
|
||||
//TODO: Add more tests here
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue