RIC-3057: Fix for retry in socket send
[ric-plt/rtmgr.git] / pkg / rtmgr / rtmgr_test.go
index 3c089fc..2f02b99 100644 (file)
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
+
+   This source code is part of the near-RT RIC (RAN Intelligent Controller)
+   platform project (RICP).
+
 ==================================================================================
 */
 /*
 ==================================================================================
 */
 /*
@@ -29,15 +33,15 @@ import (
 )
 
 func TestSetLogLevel(t *testing.T) {
 )
 
 func TestSetLogLevel(t *testing.T) {
-       modes_ok := []string{"info", "warn", "debug", "error"}
-       modes_nok := []string{"inValId", "LogLEVEL", "PRoviDeD"}
-       for _, value := range modes_ok {
+       modeIsOk := []string{"info", "warn", "debug", "error"}
+       modeOsNok := []string{"inValId", "LogLEVEL", "Provided"}
+       for _, value := range modeIsOk {
                if SetLogLevel(value) != nil {
                        t.Error("Invalid log level: " + value)
                }
        }
 
                if SetLogLevel(value) != nil {
                        t.Error("Invalid log level: " + value)
                }
        }
 
-       for _, value := range modes_nok {
+       for _, value := range modeOsNok {
                if SetLogLevel(value) == nil {
                        t.Error("Invalid log level: " + value)
                }
                if SetLogLevel(value) == nil {
                        t.Error("Invalid log level: " + value)
                }