OSDN Git Service

Thanos did someting
[bytom/vapor.git] / vendor / github.com / sirupsen / logrus / hooks / syslog / syslog_test.go
diff --git a/vendor/github.com/sirupsen/logrus/hooks/syslog/syslog_test.go b/vendor/github.com/sirupsen/logrus/hooks/syslog/syslog_test.go
deleted file mode 100644 (file)
index 5ec3a44..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-package syslog
-
-import (
-       "log/syslog"
-       "testing"
-
-       "github.com/sirupsen/logrus"
-)
-
-func TestLocalhostAddAndPrint(t *testing.T) {
-       log := logrus.New()
-       hook, err := NewSyslogHook("udp", "localhost:514", syslog.LOG_INFO, "")
-
-       if err != nil {
-               t.Errorf("Unable to connect to local syslog.")
-       }
-
-       log.Hooks.Add(hook)
-
-       for _, level := range hook.Levels() {
-               if len(log.Hooks[level]) != 1 {
-                       t.Errorf("SyslogHook was not added. The length of log.Hooks[%v]: %v", level, len(log.Hooks[level]))
-               }
-       }
-
-       log.Info("Congratulations!")
-}