Fix UTs

Change-Id: Iae928e1feb9d6d72df0c4e1b2aa76544bafa01a5
Signed-off-by: Mohamed Abukar <abukar.mohamed@nokia.com>
diff --git a/manager/cmd/manager_test.go b/manager/cmd/manager_test.go
index 5f1cecc..4f4cf6d 100755
--- a/manager/cmd/manager_test.go
+++ b/manager/cmd/manager_test.go
@@ -24,11 +24,6 @@
 	"bytes"
 	"encoding/json"
 	"fmt"
-	"gerrit.o-ran-sc.org/r/ric-plt/alarm-go/alarm"
-	"gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/xapp"
-	"github.com/gorilla/mux"
-	"github.com/prometheus/alertmanager/api/v2/models"
-	"github.com/stretchr/testify/assert"
 	"io"
 	"io/ioutil"
 	"net"
@@ -40,6 +35,12 @@
 	"strings"
 	"testing"
 	"time"
+
+	"gerrit.o-ran-sc.org/r/ric-plt/alarm-go/alarm"
+	"gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/xapp"
+	"github.com/gorilla/mux"
+	"github.com/prometheus/alertmanager/api/v2/models"
+	"github.com/stretchr/testify/assert"
 )
 
 var alarmManager *AlarmManager
@@ -282,8 +283,11 @@
 	b := alarmer.NewAlarm(alarm.TCP_CONNECTIVITY_LOST_TO_DBAAS, alarm.SeverityMinor, "Hello", "abcd 11")
 	assert.Nil(t, alarmer.Raise(b), "raise failed")
 
-	time.Sleep(time.Duration(2) * time.Second)
-	VerifyAlarm(t, a, 2)
+	time.Sleep(time.Duration(5) * time.Second)
+
+	xapp.Logger.Info("VerifyAlarm: %d %+v", len(alarmManager.activeAlarms), alarmManager.activeAlarms)
+	VerifyAlarm(t, a, 1)
+	xapp.Logger.Info("VerifyAlarm: %d %+v", len(alarmManager.activeAlarms), alarmManager.activeAlarms)
 	VerifyAlarm(t, b, 2)
 }