From 2ac537393df968b110923b8a6eb326313503894a Mon Sep 17 00:00:00 2001 From: K Simmons Date: Tue, 25 Oct 2022 00:11:59 -0700 Subject: [PATCH] fix failing test --- Cargo.lock | 1 + crates/editor/Cargo.toml | 1 + crates/editor/src/editor_tests.rs | 2 ++ 3 files changed, 4 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 65b562c8edbf903a80d078f6d1e4c1c68e0b01ab..0c65493e26adbd2bc6be4cd0ffab89c731d71c77 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1736,6 +1736,7 @@ dependencies = [ "collections", "context_menu", "ctor", + "drag_and_drop", "env_logger", "futures 0.3.24", "fuzzy", diff --git a/crates/editor/Cargo.toml b/crates/editor/Cargo.toml index db634376d076cbca8d4e9a62651cc8f7eaefdcde..f56ed36f75076311ebbd3a778c7896f783b8268d 100644 --- a/crates/editor/Cargo.toml +++ b/crates/editor/Cargo.toml @@ -20,6 +20,7 @@ test-support = [ ] [dependencies] +drag_and_drop = { path = "../drag_and_drop" } text = { path = "../text" } clock = { path = "../clock" } collections = { path = "../collections" } diff --git a/crates/editor/src/editor_tests.rs b/crates/editor/src/editor_tests.rs index 58978c51f0d388bdcf9a2f0f8700777a34f34311..839f804ec30a31590f3c20c5c9900eea4e0191b6 100644 --- a/crates/editor/src/editor_tests.rs +++ b/crates/editor/src/editor_tests.rs @@ -1,5 +1,6 @@ use std::{cell::RefCell, rc::Rc, time::Instant}; +use drag_and_drop::DragAndDrop; use futures::StreamExt; use indoc::indoc; use unindent::Unindent; @@ -472,6 +473,7 @@ fn test_clone(cx: &mut gpui::MutableAppContext) { #[gpui::test] fn test_navigation_history(cx: &mut gpui::MutableAppContext) { cx.set_global(Settings::test(cx)); + cx.set_global(DragAndDrop::::default()); use workspace::Item; let (_, pane) = cx.add_window(Default::default(), |cx| Pane::new(None, cx)); let buffer = MultiBuffer::build_simple(&sample_text(300, 5, 'a'), cx);