Skip to content

Commit

Permalink
Fixed test error message to accomodate new consolidated if-block
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooklyn Welsh committed Sep 23, 2024
1 parent dcb29f3 commit e8b9f14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/services/move/move_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (router moveRouter) sendToServiceCounselor(appCtx appcontext.AppContext, mo
move.MTOShipments[i].Status = models.MTOShipmentStatusSubmitted

if verrs, err := appCtx.DB().ValidateAndUpdate(&move.MTOShipments[i]); verrs.HasAny() || err != nil {
msg := "failure saving parent MTO shipment object for boat shipment when routing move submission"
msg := "failure saving parent MTO shipment object for boat/mobile home shipment when routing move submission"
appCtx.Logger().Error(msg, zap.Error(err))
return apperror.NewInvalidInputError(move.MTOShipments[i].ID, err, verrs, msg)
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/services/move/move_router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ func (suite *MoveServiceSuite) TestMoveSubmission() {

sitDaysAllowance := -1 // Invalid value that should cause a validation error on MTOShipment

expError := "failure saving parent MTO shipment object for mobile home shipment when routing move submission"
expError := "failure saving parent MTO shipment object for boat/mobile home shipment when routing move submission"

move := factory.BuildMove(suite.DB(), []factory.Customization{
{
Expand Down Expand Up @@ -566,7 +566,7 @@ func (suite *MoveServiceSuite) TestMoveSubmission() {

sitDaysAllowance := -1 // Invalid value that should cause a validation error on MTOShipment

expError := "failure saving parent MTO shipment object for boat shipment when routing move submission"
expError := "failure saving parent MTO shipment object for boat/mobile home shipment when routing move submission"

move := factory.BuildMove(suite.DB(), []factory.Customization{
{
Expand Down

0 comments on commit e8b9f14

Please sign in to comment.