summary refs log tree commit diff stats
path: root/handlers_test.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-22 23:35:37 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-22 23:51:12 -0400
commita6c816217f09e4d462949c2631a88439886ed655 (patch)
tree4469487aa48ebc4315c080ed7b14763da88e1dfd /handlers_test.go
parentbce52652ceb54b325ac72cc9a173655ec0a80756 (diff)
downloadgetwtxt-a6c816217f09e4d462949c2631a88439886ed655.tar.gz
moved test init funcs to init_test, testing POST
Diffstat (limited to 'handlers_test.go')
-rw-r--r--handlers_test.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/handlers_test.go b/handlers_test.go
index b409521..63b7c3d 100644
--- a/handlers_test.go
+++ b/handlers_test.go
@@ -4,29 +4,11 @@ import (
 	"bytes"
 	"fmt"
 	"io/ioutil"
-	"log"
 	"net/http"
 	"net/http/httptest"
-	"os"
 	"testing"
 )
 
-var testport = fmt.Sprintf(":%v", confObj.port)
-
-func initTestConf() {
-	initConfig()
-	tmpls = initTemplates()
-	logToNull()
-}
-
-func logToNull() {
-	hush, err := os.Open("/dev/null")
-	if err != nil {
-		log.Printf("%v\n", err)
-	}
-	log.SetOutput(hush)
-}
-
 // these will be expanded later. currently, they only
 // test for a 200 status code.
 func Test_indexHandler(t *testing.T) {