summaryrefslogtreecommitdiff
path: root/app/dependecies_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/dependecies_test.go')
-rw-r--r--app/dependecies_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/dependecies_test.go b/app/dependecies_test.go
index d220f96..dd42495 100644
--- a/app/dependecies_test.go
+++ b/app/dependecies_test.go
@@ -1,3 +1,5 @@
+// +build all dep
+
package main
import (
@@ -6,9 +8,11 @@ import (
func TestDatabase(t *testing.T) {
// h := Host{Url: "http://example.com"}
+ InitDB()
err := Db.DB().Ping()
if err != nil {
- t.Fatal("No database connection established.")
+ //t.Fatal("No database connection established.")
+ t.Error("No database connection established.")
}
}