Skip to content

Commit

Permalink
make test fail if tx can be signed with no endorsements
Browse files Browse the repository at this point in the history
Signed-off-by: Antoine Toulme <[email protected]>
  • Loading branch information
atoulme committed Jan 20, 2022
1 parent 954ba2b commit 7acb6f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions protoutil/txutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,8 @@ func TestCreateSignedTx(t *testing.T) {
Status: int32(200),
},
}}
// TODO: Is it a problem that a TX can be signed with no endorsements
_, err = protoutil.CreateSignedTx(prop, signID, responses...)
require.NoError(t, err)
require.Error(t, err, "Expected error because no endorsements were present")

// success
responses = []*pb.ProposalResponse{{
Expand Down

0 comments on commit 7acb6f4

Please sign in to comment.