summaryrefslogtreecommitdiff
path: root/sd_daemon/log_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'sd_daemon/log_test.go')
-rw-r--r--sd_daemon/log_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/sd_daemon/log_test.go b/sd_daemon/log_test.go
index e2fdef9..257ccb9 100644
--- a/sd_daemon/log_test.go
+++ b/sd_daemon/log_test.go
@@ -33,8 +33,8 @@ func TestLog(t *testing.T) {
}))
type testcase struct {
- level syslog.Priority
- msg string
+ pri syslog.Priority
+ msg string
}
testcases := map[testcase]string{
@@ -52,18 +52,18 @@ func TestLog(t *testing.T) {
for in, out := range testcases {
written = nil
- n, err := log.WriteString(in.level, in.msg)
+ n, err := log.WriteString(in.pri, in.msg)
if n != len(out) || string(written) != out || err != nil {
t.Errorf("WriteString(%#v, %#v)\n -> expected:{%#v, %#v, %#v}\n -> got:{%#v, %#v, %#v}\n",
- in.level, in.msg,
+ in.pri, in.msg,
len(out), nil, out,
n, err, string(written))
}
written = nil
- n, err = log.WriteBytes(in.level, []byte(in.msg))
+ n, err = log.WriteBytes(in.pri, []byte(in.msg))
if n != len(out) || string(written) != out || err != nil {
t.Errorf("WriteBytes(%#v, %#v)\n -> expected:{%#v, %#v, %#v}\n -> got:{%#v, %#v, %#v}\n",
- in.level, in.msg,
+ in.pri, in.msg,
len(out), nil, out,
n, err, string(written))
}