diff --git a/src/engine/tcr_test.go b/src/engine/tcr_test.go index 599330a9..7704cb37 100644 --- a/src/engine/tcr_test.go +++ b/src/engine/tcr_test.go @@ -371,10 +371,6 @@ func Test_introspective_variant(t *testing.T) { tcr.revert(*events.ATcrEvent()) assert.Equal(t, []fake.Command{fake.CommitCommand, fake.RevertCommand}, vcsFake.GetLastCommands(2)) - - //assert.True(t, vcsFake.VerifyLastCommandsAre(fake.CommitCommand, fake.RevertCommand), - // "got %v", vcsFake.GetLastCommands()) - } func Test_tcr_cycle_end_state(t *testing.T) { diff --git a/src/vcs/fake/vcs_test_fake.go b/src/vcs/fake/vcs_test_fake.go index 8fb2787d..73c1c284 100644 --- a/src/vcs/fake/vcs_test_fake.go +++ b/src/vcs/fake/vcs_test_fake.go @@ -26,7 +26,6 @@ package fake import ( "errors" - "github.com/google/go-cmp/cmp" "github.com/murex/tcr/vcs" ) @@ -116,12 +115,6 @@ func (vf *VCSFake) GetLastCommands(count int) []Command { return vf.lastCommands[len(vf.lastCommands)-count:] } -// VerifyLastCommandsAre checks if last executed commands are the provided ones -func (vf *VCSFake) VerifyLastCommandsAre(expectedCommands ...Command) bool { - actual := vf.lastCommands[len(vf.lastCommands)-len(expectedCommands):] - return cmp.Equal(actual, expectedCommands) -} - // Add does nothing. Returns an error if in the list of failing commands func (vf *VCSFake) Add(_ ...string) error { return vf.fakeCommand(AddCommand)