explain in message how to silence timetrap warning

This commit is contained in:
Abraham Toriz 2022-08-29 19:03:11 -04:00
parent ca7c424b46
commit bfef1004e3
No known key found for this signature in database
GPG Key ID: D5B4A746DB5DD42A
6 changed files with 7 additions and 7 deletions

View File

@ -170,7 +170,7 @@ mod tests {
assert_eq!(
String::from_utf8_lossy(&streams.err),
"[WARNING] You are using the old timetrap format, it is advised that you update your database using t migrate\n"
"[WARNING] You are using the old timetrap format, it is advised that you update your database using t migrate. To supress this warning set TIEMPO_SUPRESS_TIMETRAP_WARNING=1\n"
);
}
@ -317,7 +317,7 @@ Timesheet: sheet1
assert_eq!(
String::from_utf8_lossy(&streams.err),
"[WARNING] You are using the old timetrap format, it is advised that you update your database using t migrate\n"
"[WARNING] You are using the old timetrap format, it is advised that you update your database using t migrate. To supress this warning set TIEMPO_SUPRESS_TIMETRAP_WARNING=1\n"
);
}

View File

@ -365,7 +365,7 @@ mod tests {
");
assert_eq!(
String::from_utf8_lossy(&streams.err),
"[WARNING] You are using the old timetrap format, it is advised that you update your database using t migrate\n"
"[WARNING] You are using the old timetrap format, it is advised that you update your database using t migrate. To supress this warning set TIEMPO_SUPRESS_TIMETRAP_WARNING=1\n"
);
std::mem::drop(streams.db);

View File

@ -177,7 +177,7 @@ mod tests {
assert_eq!(&String::from_utf8_lossy(&streams.out), "Checked into sheet \"default\".\n");
assert_eq!(&String::from_utf8_lossy(&streams.err),
"[WARNING] You are using the old timetrap format, it is advised that \
you update your database using t migrate\n");
you update your database using t migrate. To supress this warning set TIEMPO_SUPRESS_TIMETRAP_WARNING=1\n");
}
#[test]

View File

@ -232,7 +232,7 @@ mod tests {
assert_eq!(
String::from_utf8_lossy(&streams.err),
"[WARNING] You are using the old timetrap format, it is advised that you update your database using t migrate\n"
"[WARNING] You are using the old timetrap format, it is advised that you update your database using t migrate. To supress this warning set TIEMPO_SUPRESS_TIMETRAP_WARNING=1\n"
);
}
}

View File

@ -135,7 +135,7 @@ mod tests {
assert_eq!(
String::from_utf8_lossy(&streams.err),
"[WARNING] You are using the old timetrap format, it is advised that you update your database using t migrate\n"
"[WARNING] You are using the old timetrap format, it is advised that you update your database using t migrate. To supress this warning set TIEMPO_SUPRESS_TIMETRAP_WARNING=1\n"
);
}
}

View File

@ -114,6 +114,6 @@ mod tests {
assert_eq!(&String::from_utf8_lossy(&streams.out), "Checked out of sheet \"default\".\n");
assert_eq!(&String::from_utf8_lossy(&streams.err),
"[WARNING] You are using the old timetrap format, it is advised that \
you update your database using t migrate\n");
you update your database using t migrate. To supress this warning set TIEMPO_SUPRESS_TIMETRAP_WARNING=1\n");
}
}