Skip to content

Commit

Permalink
flipped test results
Browse files Browse the repository at this point in the history
  • Loading branch information
taeJungCaci committed Jun 11, 2024
1 parent dfea792 commit 8ff0d1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/services/order/order_fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,21 +399,21 @@ func (suite *OrderServiceSuite) TestListOrders() {
// Expected outcome: search results should only include the move with the PPM status that was searched for
officeUser, partialPPMMove, session := setupTestData()
suite.Equal("PARTIAL", *partialPPMMove.PPMType)
ppmShipmentNeedsCloseout := factory.BuildPPMShipmentThatNeedsCloseout(suite.DB(), nil, nil)
ppmShipmentWaiting := factory.BuildPPMShipmentThatNeedsToBeResubmitted(suite.DB(), nil)

ppmShipmentNeedsCloseout := factory.BuildPPMShipmentThatNeedsCloseout(suite.DB(), nil, nil)
// Search for PARTIAL PPM moves
moves, _, err := orderFetcher.ListOrders(suite.AppContextWithSessionForTest(&session), officeUser.ID, &services.ListOrderParams{
PPMStatus: models.StringPointer("WAITING_ON_CUSTOMER"),
PPMStatus: models.StringPointer("NEEDS_CLOSEOUT"),
})

suite.FatalNoError(err)
suite.Equal(1, len(moves))
suite.Equal(moves[0].MTOShipments[0].PPMShipment.Status, ppmShipmentNeedsCloseout.Shipment.PPMShipment.Status)

ppmShipmentWaiting := factory.BuildPPMShipmentThatNeedsToBeResubmitted(suite.DB(), nil)
// Search for FULL PPM moves
moves, _, err = orderFetcher.ListOrders(suite.AppContextWithSessionForTest(&session), officeUser.ID, &services.ListOrderParams{
PPMStatus: models.StringPointer("NEEDS_CLOSEOUT"),
PPMStatus: models.StringPointer("WAITING_ON_CUSTOMER"),
})

suite.FatalNoError(err)
Expand Down

0 comments on commit 8ff0d1b

Please sign in to comment.