Fix test on non linux platform

This commit is contained in:
Olivier Poitrey 2020-02-10 17:16:38 -08:00
parent 68a3fd989d
commit f7c93dce1c
1 changed files with 4 additions and 3 deletions

View File

@ -1,14 +1,15 @@
// +build !windows // +build linux
package journald_test package journald_test
import ( import (
"bytes" "bytes"
"github.com/rs/zerolog"
"io" "io"
"testing" "testing"
"github.com/rs/zerolog"
"github.com/rs/zerolog/journald"
) )
import "github.com/rs/zerolog/journald"
func ExampleNewJournalDWriter() { func ExampleNewJournalDWriter() {
log := zerolog.New(journald.NewJournalDWriter()) log := zerolog.New(journald.NewJournalDWriter())