Skip to content

Commit 0dfa4e5

Browse files
committed
fix: test
1 parent e59b428 commit 0dfa4e5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ocpp2.0.1_test/get_composite_schedule_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ func (suite *OcppV2TestSuite) TestGetCompositeScheduleE2EMocked() {
7373
responseJson := fmt.Sprintf(`[3,"%v",{"status":"%v","statusInfo":{"reasonCode":"%v"},"schedule":{"startDateTime":"%v","chargingSchedule":{"id":%v,"startSchedule":"%v","duration":%v,"chargingRateUnit":"%v","minChargingRate":%v,"chargingSchedulePeriod":[{"startPeriod":%v,"limit":%v,"numberPhases":%v}]}}}]`,
7474
messageId, status, statusInfo.ReasonCode, compositeSchedule.StartDateTime.FormatTimestamp(), chargingSchedule.ID, chargingSchedule.StartSchedule.FormatTimestamp(), *chargingSchedule.Duration, chargingSchedule.ChargingRateUnit, *chargingSchedule.MinChargingRate, chargingSchedulePeriod.StartPeriod, chargingSchedulePeriod.Limit, *chargingSchedulePeriod.NumberPhases)
7575
getCompositeScheduleConfirmation := smartcharging.NewGetCompositeScheduleResponse(status)
76+
getCompositeScheduleConfirmation.StatusInfo = statusInfo
7677
getCompositeScheduleConfirmation.Schedule = &compositeSchedule
7778
channel := NewMockWebSocket(wsId)
7879

0 commit comments

Comments
 (0)