mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-26 10:40:54 +00:00
Suppress SVG loading errors in tests
This commit is contained in:
parent
9e6c54ba0c
commit
1719d7da2a
3 changed files with 8 additions and 3 deletions
|
@ -4,6 +4,9 @@ edition = "2018"
|
|||
name = "gpui"
|
||||
version = "0.1.0"
|
||||
|
||||
[features]
|
||||
test-support = []
|
||||
|
||||
[dependencies]
|
||||
arrayvec = "0.7.1"
|
||||
async-task = "4.0.3"
|
||||
|
|
|
@ -47,8 +47,9 @@ impl Element for Svg {
|
|||
);
|
||||
(size, Some(tree))
|
||||
}
|
||||
Err(error) => {
|
||||
log::error!("{}", error);
|
||||
Err(_error) => {
|
||||
#[cfg(not(any(test, feature = "test-support")))]
|
||||
log::error!("{}", _error);
|
||||
(constraint.min, None)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ name = "Zed"
|
|||
path = "src/main.rs"
|
||||
|
||||
[features]
|
||||
test-support = ["tempdir", "zrpc/test-support"]
|
||||
test-support = ["tempdir", "zrpc/test-support", "gpui/test-support"]
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.38"
|
||||
|
@ -69,6 +69,7 @@ serde_json = { version = "1.0.64", features = ["preserve_order"] }
|
|||
tempdir = { version = "0.3.7" }
|
||||
unindent = "0.1.7"
|
||||
zrpc = { path = "../zrpc", features = ["test-support"] }
|
||||
gpui = { path = "../gpui", features = ["test-support"] }
|
||||
|
||||
[package.metadata.bundle]
|
||||
icon = ["app-icon@2x.png", "app-icon.png"]
|
||||
|
|
Loading…
Reference in a new issue