Skip to content

Commit a9ae506

Browse files
committed
Fix flakey test
Whenever we perform an action in a test, we should assert on the result before doing the next action. This prevents issues where the test moves too fast for our code. It would be nice to not have to do this, but for now that's the situation
1 parent 1932c23 commit a9ae506

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/integration/tests/reflog/patch.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ var Patch = NewIntegrationTest(NewIntegrationTestArgs{
2828
Contains("commit (initial): one"),
2929
).
3030
SelectNextItem().
31+
Lines(
32+
Contains("reset: moving to HEAD^^"),
33+
Contains("commit: three").IsSelected(),
34+
Contains("commit: two"),
35+
Contains("commit (initial): one"),
36+
).
3137
PressEnter()
3238

3339
t.Views().SubCommits().

0 commit comments

Comments
 (0)