X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=reader%2FrNibReaderDeprecated_test.go;h=71757ffc8e73ea727f216e2a5a944f1daaa4fd12;hb=refs%2Fheads%2Fg-release;hp=168432ef316653a2f38bcbf1d493c3058a2cc2f4;hpb=e9fee6f254270875378e5bec3bd7a3ff1dfae51f;p=ric-plt%2Fnodeb-rnib.git diff --git a/reader/rNibReaderDeprecated_test.go b/reader/rNibReaderDeprecated_test.go index 168432e..71757ff 100644 --- a/reader/rNibReaderDeprecated_test.go +++ b/reader/rNibReaderDeprecated_test.go @@ -27,6 +27,7 @@ import ( "github.com/golang/protobuf/proto" "github.com/pkg/errors" "github.com/stretchr/testify/assert" + "strconv" "testing" "time" ) @@ -431,7 +432,13 @@ func TestGetListEnbIdsDeprecated(t *testing.T) { idsData := make([]string, listSize) idsEntities := make([]*entities.NbIdentity, listSize) for i := 0; i < listSize; i++ { - nbIdentity := &entities.NbIdentity{InventoryName: name, GlobalNbId: &entities.GlobalNbId{PlmnId: string(plmnId + i), NbId: string(nbId + i)}} + nbIdentity := &entities.NbIdentity{ + InventoryName: name, + GlobalNbId: &entities.GlobalNbId{ + PlmnId: strconv.FormatInt(int64(plmnId+i), 16), + NbId: strconv.FormatInt(int64(nbId+i), 16), + }, + } data, err := proto.Marshal(nbIdentity) if err != nil { t.Errorf("#rNibReader_test.TestGetListEnbIds - Failed to marshal nodeb identity entity. Error: %v", err) @@ -489,7 +496,13 @@ func TestGetListGnbIdsDeprecated(t *testing.T) { idsData := make([]string, listSize) idsEntities := make([]*entities.NbIdentity, listSize) for i := 0; i < listSize; i++ { - nbIdentity := &entities.NbIdentity{InventoryName: name, GlobalNbId: &entities.GlobalNbId{PlmnId: string(plmnId + i), NbId: string(nbId + i)}} + nbIdentity := &entities.NbIdentity{ + InventoryName: name, + GlobalNbId: &entities.GlobalNbId{ + PlmnId: strconv.FormatInt(int64(plmnId+i), 16), + NbId: strconv.FormatInt(int64(nbId+i), 16), + }, + } data, err := proto.Marshal(nbIdentity) if err != nil { t.Errorf("#rNibReader_test.TestGetListGnbIds - Failed to marshal nodeb identity entity. Error: %v", err)