Loading go-packages/meep-net-char-mgr/algo-segment_test.go +6 −6 Original line number Diff line number Diff line Loading @@ -113,7 +113,7 @@ func TestSegAlgoSegmentation(t *testing.T) { var netChar dataModel.NetworkCharacteristics netChar.ThroughputUl = 100 netCharUpdateEvent.NetChar = &netChar err = activeModel.UpdateNetChar(&netCharUpdateEvent) err = activeModel.UpdateNetChar(&netCharUpdateEvent, nil) if err != nil { t.Fatalf("Error updating net char") } Loading @@ -134,7 +134,7 @@ func TestSegAlgoSegmentation(t *testing.T) { // Verify algo after UE Mobility event update fmt.Println("Move ue1") _, _, err = activeModel.MoveNode("ue1", "zone2-poa1") _, _, err = activeModel.MoveNode("ue1", "zone2-poa1", nil) if err != nil { t.Fatalf("Error moving UE") } Loading Loading @@ -167,7 +167,7 @@ func TestSegAlgoSegmentation(t *testing.T) { // Verify algo after model update fmt.Println("Move ue1") _, _, err = activeModel.MoveNode("ue1", "zone1-poa1") _, _, err = activeModel.MoveNode("ue1", "zone1-poa1", nil) if err != nil { t.Fatalf("Error moving UE") } Loading Loading @@ -297,7 +297,7 @@ func TestSegAlgoCalculation(t *testing.T) { netChar.PacketLoss = 0 // no change netChar.ThroughputDl = 100 netCharUpdateEvent.NetChar = &netChar err = activeModel.UpdateNetChar(&netCharUpdateEvent) err = activeModel.UpdateNetChar(&netCharUpdateEvent, nil) if err != nil { t.Fatalf("Error updating net char") } Loading Loading @@ -330,7 +330,7 @@ func TestSegAlgoCalculation(t *testing.T) { // Verify algo calculations after UE Mobility event update fmt.Println("Move ue1 to zone2-poa1") _, _, err = activeModel.MoveNode("ue1", "zone2-poa1") _, _, err = activeModel.MoveNode("ue1", "zone2-poa1", nil) if err != nil { t.Fatalf("Error moving UE") } Loading Loading @@ -392,7 +392,7 @@ func TestSegAlgoCalculation(t *testing.T) { // Verify algo calculations after UE Mobility event update fmt.Println("Move ue1 to zone1-poa1") _, _, err = activeModel.MoveNode("ue1", "zone1-poa1") _, _, err = activeModel.MoveNode("ue1", "zone1-poa1", nil) if err != nil { t.Fatalf("Error moving UE") } Loading Loading
go-packages/meep-net-char-mgr/algo-segment_test.go +6 −6 Original line number Diff line number Diff line Loading @@ -113,7 +113,7 @@ func TestSegAlgoSegmentation(t *testing.T) { var netChar dataModel.NetworkCharacteristics netChar.ThroughputUl = 100 netCharUpdateEvent.NetChar = &netChar err = activeModel.UpdateNetChar(&netCharUpdateEvent) err = activeModel.UpdateNetChar(&netCharUpdateEvent, nil) if err != nil { t.Fatalf("Error updating net char") } Loading @@ -134,7 +134,7 @@ func TestSegAlgoSegmentation(t *testing.T) { // Verify algo after UE Mobility event update fmt.Println("Move ue1") _, _, err = activeModel.MoveNode("ue1", "zone2-poa1") _, _, err = activeModel.MoveNode("ue1", "zone2-poa1", nil) if err != nil { t.Fatalf("Error moving UE") } Loading Loading @@ -167,7 +167,7 @@ func TestSegAlgoSegmentation(t *testing.T) { // Verify algo after model update fmt.Println("Move ue1") _, _, err = activeModel.MoveNode("ue1", "zone1-poa1") _, _, err = activeModel.MoveNode("ue1", "zone1-poa1", nil) if err != nil { t.Fatalf("Error moving UE") } Loading Loading @@ -297,7 +297,7 @@ func TestSegAlgoCalculation(t *testing.T) { netChar.PacketLoss = 0 // no change netChar.ThroughputDl = 100 netCharUpdateEvent.NetChar = &netChar err = activeModel.UpdateNetChar(&netCharUpdateEvent) err = activeModel.UpdateNetChar(&netCharUpdateEvent, nil) if err != nil { t.Fatalf("Error updating net char") } Loading Loading @@ -330,7 +330,7 @@ func TestSegAlgoCalculation(t *testing.T) { // Verify algo calculations after UE Mobility event update fmt.Println("Move ue1 to zone2-poa1") _, _, err = activeModel.MoveNode("ue1", "zone2-poa1") _, _, err = activeModel.MoveNode("ue1", "zone2-poa1", nil) if err != nil { t.Fatalf("Error moving UE") } Loading Loading @@ -392,7 +392,7 @@ func TestSegAlgoCalculation(t *testing.T) { // Verify algo calculations after UE Mobility event update fmt.Println("Move ue1 to zone1-poa1") _, _, err = activeModel.MoveNode("ue1", "zone1-poa1") _, _, err = activeModel.MoveNode("ue1", "zone1-poa1", nil) if err != nil { t.Fatalf("Error moving UE") } Loading