More changes for scan corrections and unit test coverage
[ric-plt/lib/rmr.git] / test / sr_si_static_test.c
index be99359..0bbd045 100644 (file)
@@ -82,7 +82,6 @@ static int sr_si_test() {
        ctx->max_mlen = ctx->max_plen + sizeof( uta_mhdr_t );
        ctx->my_name = strdup( "dummy-test" );
        ctx->my_ip = strdup( "30.4.19.86:1111" );
-       uta_lookup_rtg( ctx );
 
        gen_rt( ctx );                                                          // forces a static load with some known info since we don't start the rtc()
        gen_rt( ctx );                                                          // force a second load to test cloning
@@ -147,6 +146,10 @@ static int sr_si_test() {
        rtc_file( NULL );                       // the static file only collector
        rtc_file( ctx );
 
+       setenv( "RMR_RTREQ_FREQ", "400", 1 );   // force error checking code in rtc to resort to default
+       rtc( ctx );
+
+       setenv( "RMR_CTL_PORT", "43086", 1 );   // force defined branch in rtc
        rtc( ctx );
 
        setenv( "RMR_RTG_SVC", "4567", 1 );             // drive for edge case coverage to ensure no nil pointer etc