From 46cc63dccc3e99f4139fc45888f772fe0bb327ac Mon Sep 17 00:00:00 2001 From: William Banfield Date: Fri, 11 Mar 2022 12:50:07 -0500 Subject: [PATCH] types_test comment changes --- abci/types/types_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/abci/types/types_test.go b/abci/types/types_test.go index 6c2b04559..0c18951af 100644 --- a/abci/types/types_test.go +++ b/abci/types/types_test.go @@ -62,7 +62,7 @@ func TestValidateResponsePrepareProposal(t *testing.T) { err := rpp.Validate(9, [][]byte{}) require.Error(t, err) }) - t.Run("should error on duplicate transactions", func(t *testing.T) { + t.Run("should error on duplicate transactions with the same action", func(t *testing.T) { rpp := &abci.ResponsePrepareProposal{ ModifiedTx: true, TxRecords: []*abci.TxRecord{ @@ -87,7 +87,7 @@ func TestValidateResponsePrepareProposal(t *testing.T) { err := rpp.Validate(100, [][]byte{}) require.Error(t, err) }) - t.Run("should error on duplicate transactions", func(t *testing.T) { + t.Run("should error on duplicate transactions with mixed actions", func(t *testing.T) { rpp := &abci.ResponsePrepareProposal{ ModifiedTx: true, TxRecords: []*abci.TxRecord{ @@ -140,7 +140,7 @@ func TestValidateResponsePrepareProposal(t *testing.T) { fmt.Println(err) require.Error(t, err) }) - t.Run("should error on unmodified transaction marked as ADDED", func(t *testing.T) { + t.Run("should error on existing transaction marked as ADDED", func(t *testing.T) { rpp := &abci.ResponsePrepareProposal{ ModifiedTx: true, TxRecords: []*abci.TxRecord{