Skip to content

Commit

Permalink
travis-ci: skip syslog tests for container-based travis infra
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanuber committed Jul 28, 2015
1 parent 3ad7a53 commit 40f3e3f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion command/agent/syslog_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package agent

import (
"os"
"runtime"
"testing"

Expand All @@ -10,8 +11,12 @@ import (

func TestSyslogFilter(t *testing.T) {
if runtime.GOOS == "windows" {
t.SkipNow()
t.Skip("Syslog not supported on Windows")
}
if os.Getenv("TRAVIS") == "true" {
t.Skip("Syslog not supported on travis-ci")
}

l, err := gsyslog.NewLogger(gsyslog.LOG_NOTICE, "LOCAL0", "consul")
if err != nil {
t.Fatalf("err: %s", err)
Expand Down

0 comments on commit 40f3e3f

Please sign in to comment.