Skip to content

Commit 0b1614e

Browse files
committed
Fix Error Indication during Deregistration
1 parent 1c66eba commit 0b1614e

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

internal/control_test_engine/gnb/ngap/handler/handler.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -713,9 +713,7 @@ func HandlerErrorIndication(gnb *context.GNBContext, message *ngapType.NGAPPDU)
713713
}
714714
}
715715

716-
ue := getUeFromContext(gnb, ranUeId, amfUeId)
717-
718-
log.Warn("[GNB][AMF] Received an Error Indication for UE with AMF UE ID: ", ue.GetAmfUeId(), ", RAN UE ID: ", ue.GetRanUeId())
716+
log.Warn("[GNB][AMF] Received an Error Indication for UE with AMF UE ID: ", amfUeId, " RAN UE ID: ", ranUeId)
719717
}
720718

721719
func getUeFromContext(gnb *context.GNBContext, ranUeId int64, amfUeId int64) *context.GNBUe {

internal/control_test_engine/gnb/ngap/service/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func GnbListen(amf *context.GNBAmf, gnb *context.GNBContext) {
8080
copy(forwardData, buf[:n])
8181

8282
// handling NGAP message.
83-
ngap.Dispatch(amf, gnb, forwardData)
83+
go ngap.Dispatch(amf, gnb, forwardData)
8484

8585
}
8686

internal/control_test_engine/ue/ue.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ func ueMgrHandler(msg procedures.UeTesterMessage, ue *context.UEContext) bool {
137137
trigger.InitPduSessionRelease(ue, pduSession)
138138
select {
139139
case <-pduSession.Wait:
140-
case <-time.After(5 * time.Millisecond):
141-
// If still unregistered after 5 ms, continue
140+
case <-time.After(500 * time.Millisecond):
141+
// If still unregistered after 500 ms, continue
142142
}
143143
}
144144
}

0 commit comments

Comments
 (0)