Add integration test for code actions
This commit is contained in:
parent
68917c78be
commit
1eea2f3653
5 changed files with 259 additions and 9 deletions
|
@ -2703,7 +2703,7 @@ impl<T: Entity> ModelHandle<T> {
|
|||
let (mut tx, mut rx) = mpsc::channel(1);
|
||||
let mut cx = cx.cx.borrow_mut();
|
||||
let subscription = cx.observe(self, move |_, _| {
|
||||
tx.blocking_send(()).ok();
|
||||
tx.try_send(()).ok();
|
||||
});
|
||||
|
||||
let duration = if std::env::var("CI").is_ok() {
|
||||
|
@ -3007,7 +3007,7 @@ impl<T: View> ViewHandle<T> {
|
|||
let (mut tx, mut rx) = mpsc::channel(1);
|
||||
let mut cx = cx.cx.borrow_mut();
|
||||
let subscription = cx.observe(self, move |_, _| {
|
||||
tx.blocking_send(()).ok();
|
||||
tx.try_send(()).ok();
|
||||
});
|
||||
|
||||
let duration = if std::env::var("CI").is_ok() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue