X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fxapp%2Fxapp_test.go;h=baafa16e9b0a6d266f2a18b40e7947eb944b8741;hb=827a6410631045b503ce098de6683c6916c09842;hp=abf9345e6d04895c86185aa68e0426cfabb51de7;hpb=cfdb667b212df1f45668df8f4257beca667df9bf;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/xapp/xapp_test.go b/pkg/xapp/xapp_test.go index abf9345..baafa16 100755 --- a/pkg/xapp/xapp_test.go +++ b/pkg/xapp/xapp_test.go @@ -44,7 +44,7 @@ func (m Consumer) Consume(params *RMRParams) (err error) { // Test cases func TestMain(m *testing.M) { - go RunWithParams(Consumer{}, viper.GetBool("db.waitForSdl")) + go RunWithParams(Consumer{}, viper.GetBool("controls.waitForSdl")) time.Sleep(time.Duration(5) * time.Second) code := m.Run() os.Exit(code) @@ -122,7 +122,7 @@ func TestMessagesReceivedSuccessfully(t *testing.T) { // Allow time to process the messages time.Sleep(time.Duration(5) * time.Second) - waitForSdl := viper.GetBool("db.waitForSdl") + waitForSdl := viper.GetBool("controls.waitForSdl") stats := getMetrics(t) if !strings.Contains(stats, "ricxapp_RMR_Transmitted 100") { t.Errorf("Error: ricxapp_RMR_Transmitted value incorrect: %v", stats) @@ -168,7 +168,7 @@ func TestMessagesReceivedSuccessfullyUsingWh(t *testing.T) { // Allow time to process the messages time.Sleep(time.Duration(5) * time.Second) - waitForSdl := viper.GetBool("db.waitForSdl") + waitForSdl := viper.GetBool("controls.waitForSdl") stats := getMetrics(t) if !strings.Contains(stats, "ricxapp_RMR_Transmitted 200") { t.Errorf("Error: ricxapp_RMR_Transmitted value incorrect: %v", stats) @@ -210,7 +210,7 @@ func TestMessagesReceivedSuccessfullyUsingWhCall(t *testing.T) { // Allow time to process the messages time.Sleep(time.Duration(2) * time.Second) - waitForSdl := viper.GetBool("db.waitForSdl") + waitForSdl := viper.GetBool("controls.waitForSdl") stats := getMetrics(t) if !strings.Contains(stats, "ricxapp_RMR_Transmitted 200") { t.Errorf("Error: ricxapp_RMR_Transmitted value incorrect: %v", stats) @@ -240,7 +240,7 @@ func TestMessagesReceivedSuccessfullyUsingWhCall(t *testing.T) { func TestSubscribeChannels(t *testing.T) { Logger.Info("CASE: TestSubscribeChannels") - if !viper.GetBool("db.waitForSdl") { + if !viper.GetBool("controls.waitForSdl") { return }