explain in message how to silence timetrap warning
This commit is contained in:
parent
ca7c424b46
commit
bfef1004e3
|
@ -170,7 +170,7 @@ mod tests {
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
String::from_utf8_lossy(&streams.err),
|
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!(
|
assert_eq!(
|
||||||
String::from_utf8_lossy(&streams.err),
|
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"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -365,7 +365,7 @@ mod tests {
|
||||||
");
|
");
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
String::from_utf8_lossy(&streams.err),
|
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);
|
std::mem::drop(streams.db);
|
||||||
|
|
|
@ -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.out), "Checked into sheet \"default\".\n");
|
||||||
assert_eq!(&String::from_utf8_lossy(&streams.err),
|
assert_eq!(&String::from_utf8_lossy(&streams.err),
|
||||||
"[WARNING] You are using the old timetrap format, it is advised that \
|
"[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]
|
#[test]
|
||||||
|
|
|
@ -232,7 +232,7 @@ mod tests {
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
String::from_utf8_lossy(&streams.err),
|
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"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -135,7 +135,7 @@ mod tests {
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
String::from_utf8_lossy(&streams.err),
|
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"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.out), "Checked out of sheet \"default\".\n");
|
||||||
assert_eq!(&String::from_utf8_lossy(&streams.err),
|
assert_eq!(&String::from_utf8_lossy(&streams.err),
|
||||||
"[WARNING] You are using the old timetrap format, it is advised that \
|
"[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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue