diff options
| author | Horus_Arch | 2015-02-22 17:20:18 +0100 |
|---|---|---|
| committer | Horus_Arch | 2015-02-22 17:20:18 +0100 |
| commit | 00b28812fb5ab68156ead5b45b66740a4d5ca688 (patch) | |
| tree | 1db4545d5925943a1a761226ac378bb14d9204b7 /app/dependecies_test.go | |
| parent | bdb2d33a30765a25be3dd8c82b92517efa00dda8 (diff) | |
| download | statuspage-00b28812fb5ab68156ead5b45b66740a4d5ca688.tar.gz | |
Unit tests are now triggered by build tags.
Diffstat (limited to 'app/dependecies_test.go')
| -rw-r--r-- | app/dependecies_test.go | 6 |
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.") } } |
