aboutsummaryrefslogtreecommitdiff
path: root/crates/server/tests/heavy_tests/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/server/tests/heavy_tests/main.rs')
-rw-r--r--crates/server/tests/heavy_tests/main.rs33
1 files changed, 2 insertions, 31 deletions
diff --git a/crates/server/tests/heavy_tests/main.rs b/crates/server/tests/heavy_tests/main.rs
index 78842e44f..d6e89bdf2 100644
--- a/crates/server/tests/heavy_tests/main.rs
+++ b/crates/server/tests/heavy_tests/main.rs
@@ -10,7 +10,7 @@ extern crate m;
10 10
11mod support; 11mod support;
12 12
13use m::req::{Runnables, RunnablesParams, DidReloadWorkspace}; 13use m::req::{Runnables, RunnablesParams};
14 14
15use support::project; 15use support::project;
16 16
@@ -59,7 +59,7 @@ pub fn foo() {}
59#[test] 59#[test]
60fn test_eggs() {} 60fn test_eggs() {}
61"#); 61"#);
62 server.wait_for_notification::<DidReloadWorkspace>(); 62 server.wait_for_feedback("workspace loaded");
63 server.request::<Runnables>( 63 server.request::<Runnables>(
64 RunnablesParams { 64 RunnablesParams {
65 text_document: server.doc_id("tests/spam.rs"), 65 text_document: server.doc_id("tests/spam.rs"),
@@ -79,32 +79,3 @@ fn test_eggs() {}
79 ]"# 79 ]"#
80 ); 80 );
81} 81}
82
83#[test]
84fn test_project_model() {
85 let server = project(r#"
86//- Cargo.toml
87[package]
88name = "foo"
89version = "0.0.0"
90
91//- src/lib.rs
92pub fn foo() {}
93"#);
94 server.notification::<DidReloadWorkspace>(r#"[
95 {
96 "packages": [
97 {
98 "is_member": true,
99 "manifest": "$PROJECT_ROOT$/Cargo.toml",
100 "name": "foo",
101 "targets": [ 0 ]
102 }
103 ],
104 "targets": [
105 { "kind": "Lib", "name": "foo", "pkg": 0, "root": "$PROJECT_ROOT$/src/lib.rs" }
106 ]
107 }
108]"#
109 );
110}