fixed test

This commit is contained in:
DustInDark
2022-06-10 16:50:57 +09:00
parent 2830ee7b1a
commit 7e6fc14e4f

View File

@@ -725,7 +725,7 @@ mod tests {
.unwrap();
let expect_tz = expect_time.with_timezone(&Local);
let expect =
"Timestamp,Computer,Channel,EventID,Level,MitreAttack,RuleTitle,Details,RecordID,RecordInformation,RulePath,FilePath\n"
"Timestamp,Computer,Channel,EventID,Level,MitreAttack,RecordID,RuleTitle,Details,RecordInformation,RulePath,FilePath\n"
.to_string()
+ &expect_tz
.clone()
@@ -742,12 +742,12 @@ mod tests {
+ ","
+ test_attack
+ ","
+ test_record_id
+ ","
+ test_title
+ ","
+ output
+ ","
+ test_record_id
+ ","
+ test_recinfo
+ ","
+ test_rulepath
@@ -795,12 +795,12 @@ mod tests {
+ "|"
+ test_level
+ "|"
+ test_recid
+ "|"
+ test_title
+ "|"
+ output
+ "|"
+ test_recid
+ "|"
+ test_recinfo
+ "\n";
assert_eq!(_get_serialized_disp_output(None,), expect_header);