Make tests less noisy (#12463)
When running the tests for linux, I found a lot of benign errors getting logged. This PR cuts down some of the noise from unnecessary workspace serialization and SVG renders Release Notes: - N/A
This commit is contained in:
@@ -832,7 +832,7 @@ fn load_embedded_fonts(cx: &AppContext) {
|
||||
}
|
||||
|
||||
scope.spawn(async {
|
||||
let font_bytes = asset_source.load(font_path).unwrap();
|
||||
let font_bytes = asset_source.load(font_path).unwrap().unwrap();
|
||||
embedded_fonts.lock().push(font_bytes);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -3043,8 +3043,14 @@ mod tests {
|
||||
fn test_bundled_settings_and_themes(cx: &mut AppContext) {
|
||||
cx.text_system()
|
||||
.add_fonts(vec![
|
||||
Assets.load("fonts/zed-sans/zed-sans-extended.ttf").unwrap(),
|
||||
Assets.load("fonts/zed-mono/zed-mono-extended.ttf").unwrap(),
|
||||
Assets
|
||||
.load("fonts/zed-sans/zed-sans-extended.ttf")
|
||||
.unwrap()
|
||||
.unwrap(),
|
||||
Assets
|
||||
.load("fonts/zed-mono/zed-mono-extended.ttf")
|
||||
.unwrap()
|
||||
.unwrap(),
|
||||
])
|
||||
.unwrap();
|
||||
let themes = ThemeRegistry::default();
|
||||
|
||||
Reference in New Issue
Block a user