summaryrefslogtreecommitdiff
path: root/app/dependecies_test.go
blob: d220f965357452de17c8dd050b522532ad8bf26b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package main

import (
	"testing"
)

func TestDatabase(t *testing.T) {
	//	h := Host{Url: "http://example.com"}
	err := Db.DB().Ping()
	if err != nil {
		t.Fatal("No database connection established.")
	}

}

func TestRedis(t *testing.T) {
	c := pool.Get()
	defer c.Close()

	if _, err := c.Do("PING"); err != nil {
		//t.Fatal("Redis server down.")
		t.Error("Down")
	}
}