summary refs log tree commit diff stats
path: root/handlers_test.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-13 01:20:52 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-13 01:20:52 -0400
commit7d0b836693619d1fbe1da3b817e3820da6666699 (patch)
treeff9472593ff27974ece995d09815a042df62d237 /handlers_test.go
parent126c00e4329f3e1f0efa210318f022f4248c53e2 (diff)
downloadgetwtxt-7d0b836693619d1fbe1da3b817e3820da6666699.tar.gz
adjusting test config init func
Diffstat (limited to 'handlers_test.go')
-rw-r--r--handlers_test.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/handlers_test.go b/handlers_test.go
index 4a607e2..088af24 100644
--- a/handlers_test.go
+++ b/handlers_test.go
@@ -13,6 +13,7 @@ var testport = fmt.Sprintf(":%v", confObj.port)
 
 func initTestConf() {
 	initConfig()
+	logToNull()
 }
 
 func logToNull() {
@@ -25,7 +26,6 @@ func logToNull() {
 
 func Test_indexHandler(t *testing.T) {
 	initTestConf()
-	logToNull()
 	t.Run("indexHandler", func(t *testing.T) {
 		w := httptest.NewRecorder()
 		req := httptest.NewRequest("GET", "localhost"+testport+"/", nil)
@@ -38,7 +38,6 @@ func Test_indexHandler(t *testing.T) {
 }
 func Test_apiBaseHandler(t *testing.T) {
 	initTestConf()
-	logToNull()
 	t.Run("apiBaseHandler", func(t *testing.T) {
 		w := httptest.NewRecorder()
 		req := httptest.NewRequest("GET", "localhost"+testport+"/api", nil)
@@ -51,7 +50,6 @@ func Test_apiBaseHandler(t *testing.T) {
 }
 func Test_apiFormatHandler(t *testing.T) {
 	initTestConf()
-	logToNull()
 	t.Run("apiFormatHandler", func(t *testing.T) {
 		w := httptest.NewRecorder()
 		req := httptest.NewRequest("GET", "localhost"+testport+"/api/plain", nil)
@@ -64,7 +62,6 @@ func Test_apiFormatHandler(t *testing.T) {
 }
 func Test_apiEndpointHandler(t *testing.T) {
 	initTestConf()
-	logToNull()
 	t.Run("apiEndpointHandler", func(t *testing.T) {
 		w := httptest.NewRecorder()
 		req := httptest.NewRequest("GET", "localhost"+testport+"/api/plain/users", nil)
@@ -77,7 +74,6 @@ func Test_apiEndpointHandler(t *testing.T) {
 }
 func Test_apiTagsBaseHandler(t *testing.T) {
 	initTestConf()
-	logToNull()
 	t.Run("apiTagsBaseHandler", func(t *testing.T) {
 		w := httptest.NewRecorder()
 		req := httptest.NewRequest("GET", "localhost"+testport+"/api/plain/tags", nil)
@@ -90,7 +86,6 @@ func Test_apiTagsBaseHandler(t *testing.T) {
 }
 func Test_apiTagsHandler(t *testing.T) {
 	initTestConf()
-	logToNull()
 	t.Run("indexHandler", func(t *testing.T) {
 		w := httptest.NewRecorder()
 		req := httptest.NewRequest("GET", "localhost"+testport+"/api/plain/tags/tag", nil)
id=5fcd40174988f3c786386a3337e6e1ef955b015f'>^
63770815 ^





3c59f985 ^
63770815 ^

3c59f985 ^
63770815 ^




3c59f985 ^
63770815 ^


3c59f985 ^
63770815 ^



5dbef8ad ^
63770815 ^

3c59f985 ^

63770815 ^
3c59f985 ^
63770815 ^

3c59f985 ^

63770815 ^
3c59f985 ^
63770815 ^

3c59f985 ^

63770815 ^
3c59f985 ^
63770815 ^

3c59f985 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82