Skip to content

Commit 0b4c2c3

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 c6851a9 commit 0b4c2c3

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)