diff options
Diffstat (limited to 'sd_daemon/log_test.go')
-rw-r--r-- | sd_daemon/log_test.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sd_daemon/log_test.go b/sd_daemon/log_test.go index 257ccb9..d9937e2 100644 --- a/sd_daemon/log_test.go +++ b/sd_daemon/log_test.go @@ -1,4 +1,4 @@ -// Copyright 2016 Luke Shumaker +// Copyright 2016-2017 Luke Shumaker // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -12,11 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -package sd_daemon +package sd_daemon_test import ( "log/syslog" "testing" + + "git.lukeshu.com/go/libsystemd/sd_daemon" ) type cbWriter func(p []byte) (n int, err error) @@ -27,7 +29,7 @@ func (cb cbWriter) Write(p []byte) (n int, err error) { func TestLog(t *testing.T) { var written []byte - log := NewLogger(cbWriter(func(p []byte) (n int, err error) { + log := sd_daemon.NewLogger(cbWriter(func(p []byte) (n int, err error) { written = p return len(p), nil })) |