Commit aefa62a4 authored by Alan Szlosek's avatar Alan Szlosek

tweak test to show that syslog.parseRaw isnt handling pid properly

parent a9978c54
Pipeline #11106884 failed with stage
in 44 seconds
......@@ -17,14 +17,15 @@ tap.test('syslog.singleLines', function(test) {
tag: 'CRON[3666]',
time: '' + dt,
hostname: 'satellite',
msg: '(alan) CMD (php /home/alan/coding/projects/profiling/scripts/process.php)'
message: '(alan) CMD (php /home/alan/coding/projects/profiling/scripts/process.php)',
pid: '3666'
}
];
test.plan(1);
for (var i = 0; i < lines.length; i++) {
var out = harbinger.Parse.syslog( lines[i] );
var out = harbinger.syslog.parseRaw( lines[i] );
// Eh, these fields
out.time = '' + out.time;
test.deepEqual(out, objects[i]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment