diff options
Diffstat (limited to 'init_test.go')
-rw-r--r-- | init_test.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/init_test.go b/init_test.go new file mode 100644 index 0000000..c13ec21 --- /dev/null +++ b/init_test.go @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "log" + "os" +) + +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) +} |