summaryrefslogtreecommitdiff
path: root/app/dependecies_test.go
diff options
context:
space:
mode:
authorHorus_Arch2015-02-22 17:20:18 +0100
committerHorus_Arch2015-02-22 17:20:18 +0100
commit00b28812fb5ab68156ead5b45b66740a4d5ca688 (patch)
tree1db4545d5925943a1a761226ac378bb14d9204b7 /app/dependecies_test.go
parentbdb2d33a30765a25be3dd8c82b92517efa00dda8 (diff)
downloadstatuspage-00b28812fb5ab68156ead5b45b66740a4d5ca688.tar.gz
Unit tests are now triggered by build tags.
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.")
}
}