Skip to content

Commit

Permalink
Fix 34: TestStackTracer fails on Windows due to paths not starting wi…
Browse files Browse the repository at this point in the history
…th /
  • Loading branch information
jorygeerts authored and gravis committed Oct 24, 2018
1 parent 54c7b58 commit 68d4500
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions graylog_hook_test.go
Expand Up @@ -284,11 +284,11 @@ func TestStackTracer(t *testing.T) {
}
stacktraceRE := regexp.MustCompile(`^
.+/logrus-graylog-hook(%2ev2)?.TestStackTracer
/.+/logrus-graylog-hook(.v2)?/graylog_hook_test.go:\d+
(/|[A-Z]:/).+/logrus-graylog-hook(.v2)?/graylog_hook_test.go:\d+
testing.tRunner
/.*/testing.go:\d+
(/|[A-Z]:/).*/testing.go:\d+
runtime.*
/.*/runtime/.*:\d+$`)
(/|[A-Z]:/).*/runtime/.*:\d+$`)
if !stacktraceRE.MatchString(stacktrace) {
t.Errorf("Stack Trace not as expected. Got:\n%s\n", stacktrace)
}
Expand Down

0 comments on commit 68d4500

Please sign in to comment.