From d7c79ba20b4c621c4a6c88dc3c63c0d80551e65e Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 18 Jan 2022 20:55:21 +1100 Subject: [PATCH] fix integration test which was actually asserting incorrect behaviour --- .../staging/expected/.git_keep/index | Bin 281 -> 281 bytes .../staging/expected/.git_keep/logs/HEAD | 4 ++-- .../expected/.git_keep/logs/refs/heads/master | 4 ++-- .../0b/6860367a6e7794985007cadf0aaf04c801e59e | Bin 0 -> 146 bytes .../42/53d2597aec2a480a8e9054250e6b4aa5b76d9e | 2 -- .../68/06c569c7c063ec7ed3d16da3faa32a1622bb4b | 2 -- .../6f/7e9e66f080162af7ebab016d02550145cfda66 | Bin 0 -> 118 bytes .../expected/.git_keep/refs/heads/master | 2 +- test/integration/staging/expected/three.txt | 2 -- test/integration/staging/test.json | 2 +- 10 files changed, 6 insertions(+), 12 deletions(-) create mode 100644 test/integration/staging/expected/.git_keep/objects/0b/6860367a6e7794985007cadf0aaf04c801e59e delete mode 100644 test/integration/staging/expected/.git_keep/objects/42/53d2597aec2a480a8e9054250e6b4aa5b76d9e delete mode 100644 test/integration/staging/expected/.git_keep/objects/68/06c569c7c063ec7ed3d16da3faa32a1622bb4b create mode 100644 test/integration/staging/expected/.git_keep/objects/6f/7e9e66f080162af7ebab016d02550145cfda66 diff --git a/test/integration/staging/expected/.git_keep/index b/test/integration/staging/expected/.git_keep/index index cdf1e9ab68fff6ffda5312ec9ee6cf35b56bd649..3735bb8d97c9e860f501ab09d96c92e0ec12374b 100644 GIT binary patch delta 54 zcmbQqG?QtCmaxf9 I8TX=l0AJV@>Hq)$ delta 54 zcmbQqG?Qt 1642402468 +1100 commit (initial): file1 -6806c569c7c063ec7ed3d16da3faa32a1622bb4b 4253d2597aec2a480a8e9054250e6b4aa5b76d9e CI 1642402495 +1100 commit: test +0000000000000000000000000000000000000000 6f7e9e66f080162af7ebab016d02550145cfda66 CI 1642499582 +1100 commit (initial): file1 +6f7e9e66f080162af7ebab016d02550145cfda66 0b6860367a6e7794985007cadf0aaf04c801e59e CI 1642499609 +1100 commit: test diff --git a/test/integration/staging/expected/.git_keep/logs/refs/heads/master b/test/integration/staging/expected/.git_keep/logs/refs/heads/master index 8ad145985..fea22e271 100644 --- a/test/integration/staging/expected/.git_keep/logs/refs/heads/master +++ b/test/integration/staging/expected/.git_keep/logs/refs/heads/master @@ -1,2 +1,2 @@ -0000000000000000000000000000000000000000 6806c569c7c063ec7ed3d16da3faa32a1622bb4b CI 1642402468 +1100 commit (initial): file1 -6806c569c7c063ec7ed3d16da3faa32a1622bb4b 4253d2597aec2a480a8e9054250e6b4aa5b76d9e CI 1642402495 +1100 commit: test +0000000000000000000000000000000000000000 6f7e9e66f080162af7ebab016d02550145cfda66 CI 1642499582 +1100 commit (initial): file1 +6f7e9e66f080162af7ebab016d02550145cfda66 0b6860367a6e7794985007cadf0aaf04c801e59e CI 1642499609 +1100 commit: test diff --git a/test/integration/staging/expected/.git_keep/objects/0b/6860367a6e7794985007cadf0aaf04c801e59e b/test/integration/staging/expected/.git_keep/objects/0b/6860367a6e7794985007cadf0aaf04c801e59e new file mode 100644 index 0000000000000000000000000000000000000000..330f8f8f736443f911efb4bdf988968bcbb1d285 GIT binary patch literal 146 zcmV;D0B!$x0gaA93IZ_}Z0lKN=@YTr-gxlDTH38dlx>)gsrEi!)a!fSk0Wsr5NQA_B}b z)=8Oze%gK6;%$iM+i>--&g;_;<1$|&a!y%<{9 literal 0 HcmV?d00001 diff --git a/test/integration/staging/expected/.git_keep/objects/42/53d2597aec2a480a8e9054250e6b4aa5b76d9e b/test/integration/staging/expected/.git_keep/objects/42/53d2597aec2a480a8e9054250e6b4aa5b76d9e deleted file mode 100644 index ed016e977..000000000 --- a/test/integration/staging/expected/.git_keep/objects/42/53d2597aec2a480a8e9054250e6b4aa5b76d9e +++ /dev/null @@ -1,2 +0,0 @@ -xÎA -Â0@Q×9Eö‚d’Ì4"BW=ÆL:AÁØR#x|{·Ÿ·øemíÑ-d8õ]Õ:̘H"%IYjN„/Oûj{ïv+½=H"<Ø#Ntavg='Ãþä®n»‰û¶¹+• \ No newline at end of file diff --git a/test/integration/staging/expected/.git_keep/objects/6f/7e9e66f080162af7ebab016d02550145cfda66 b/test/integration/staging/expected/.git_keep/objects/6f/7e9e66f080162af7ebab016d02550145cfda66 new file mode 100644 index 0000000000000000000000000000000000000000..729fbdfbccfa8eb848a5d243d2c703adf2b1a17d GIT binary patch literal 118 zcmV-+0Ez#20gcT;3d0}}M&YhK#q0}ZM*m8L5&~J}7-~iuh**M!9zQukw~r5AZnbWm z1i1A>l}b_$Q6xB*0F9m#d|J7<6%g2*ybK}2#BYDMgXV=^^D^l#*3Yhw-0Dc;VG+V} Yuyhw;HdnnSUH{~!Y`cm%0lOS4uevfdWdHyG literal 0 HcmV?d00001 diff --git a/test/integration/staging/expected/.git_keep/refs/heads/master b/test/integration/staging/expected/.git_keep/refs/heads/master index c94180bef..9da93ce1c 100644 --- a/test/integration/staging/expected/.git_keep/refs/heads/master +++ b/test/integration/staging/expected/.git_keep/refs/heads/master @@ -1 +1 @@ -4253d2597aec2a480a8e9054250e6b4aa5b76d9e +0b6860367a6e7794985007cadf0aaf04c801e59e diff --git a/test/integration/staging/expected/three.txt b/test/integration/staging/expected/three.txt index 2a6e8cb28..3158e329a 100644 --- a/test/integration/staging/expected/three.txt +++ b/test/integration/staging/expected/three.txt @@ -15,8 +15,6 @@ import ( // list panel functions -func (gui *Gui) getSelectednodeNode() *nodetree.nodeNode { - selectedLine := gui.State.Panels.nodes.SelectedLineIdx if selectedLine == -1 { return nil } diff --git a/test/integration/staging/test.json b/test/integration/staging/test.json index 9cadc6b85..c0f750c29 100644 --- a/test/integration/staging/test.json +++ b/test/integration/staging/test.json @@ -1,4 +1,4 @@ { "description": "Staging a file line-by-line", - "speed": 20 + "speed": 30 }