summaryrefslogtreecommitdiff
path: root/sd_daemon/log_test.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-18 16:49:40 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-18 16:50:06 -0500
commitda323d62044ca98455763300596645dc082bd007 (patch)
treefcf40fde3b8c9303f9270a77e4b402cca23837a0 /sd_daemon/log_test.go
parent76e70fbe6ec8978c1cf36a966bca31c7417d5c67 (diff)
Change the notify signature (again). BREAKING CHANGE.v0.4.0
I think this should reduce the cognitive load of using the function.
Diffstat (limited to 'sd_daemon/log_test.go')
-rw-r--r--sd_daemon/log_test.go8
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
}))