Skip to content

Commit

Permalink
Fixed TestParseMessageInvalidActionCall
Browse files Browse the repository at this point in the history
  • Loading branch information
VolkerLieber authored and lorenzodonini committed Oct 9, 2023
1 parent 83157e1 commit 569b675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocppj/ocppj_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ func (suite *OcppJTestSuite) TestParseMessageInvalidActionCall() {
require.Error(t, err)
protoErr := err.(*ocpp.Error)
require.NotNil(t, protoErr)
assert.Equal(t, protoErr.MessageId, "") // unique id is never set after invalid type cast return
assert.Equal(t, protoErr.MessageId, messageId) // unique id is returned even after invalid type cast error
assert.Equal(t, ocppj.FormationViolation, protoErr.Code)
assert.Equal(t, "Invalid element 42 at 2, expected action (string)", protoErr.Description)
}
Expand Down

0 comments on commit 569b675

Please sign in to comment.