Skip to content

Commit 8384926

Browse files
authored
Fix rename test cursor position (#1174)
1 parent e8e7e25 commit 8384926

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/LanguageClient_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ def test_textDocument_rename_multiple_oneline(nvim):
9393
nvim.command("edit! {}".format(PATH_LIBS_RS))
9494
time.sleep(1)
9595
expect = [line.replace("a", "x") for line in nvim.current.buffer]
96-
nvim.funcs.cursor(4, 13)
96+
nvim.funcs.cursor(2, 9)
9797
# TODO: Test case where new variable length is different.
9898
nvim.funcs.LanguageClient_textDocument_rename({"newName": "x"})
99-
time.sleep(1)
99+
time.sleep(3)
100100

101101
assert nvim.current.buffer[:] == expect
102102

tests/data/sample-rs/src/libs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
pub fn yo() -> i32 {
32
let a = 1;
43
let b = a + a;

0 commit comments

Comments
 (0)