X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fcontrol%2Fsdl_e2SubsDb_test.go;h=df0d0601e8ea0bdf8c1f5fada47880fd05b61ef4;hb=refs%2Fchanges%2F63%2F7063%2F1;hp=3175cc9253f73123e7ca81e4fa45e9e49fc6c7df;hpb=989d584ada9e40aa97848700bd26c9b7af72b91d;p=ric-plt%2Fsubmgr.git diff --git a/pkg/control/sdl_e2SubsDb_test.go b/pkg/control/sdl_e2SubsDb_test.go index 3175cc9..df0d060 100644 --- a/pkg/control/sdl_e2SubsDb_test.go +++ b/pkg/control/sdl_e2SubsDb_test.go @@ -198,6 +198,17 @@ func TestWriteSubscriptionToSdl(t *testing.T) { if err != nil { t.Errorf("TEST: %s", err.Error()) } + verifyE2KeyCount(t, 1) +} + +func verifyE2KeyCount(t *testing.T, expectedCount int) { + + count, err := mainCtrl.c.GetE2KeyCount() + if err != nil { + t.Errorf("TEST: %s", err.Error()) + } else { + assert.Equal(t, expectedCount, count) + } } func TestReadSubscriptionFromSdl(t *testing.T) {