@@ -118,11 +118,11 @@ func TestConfig_AddService(t *testing.T) {
118118 packageName , tc .wantOrder , cfg .Order )
119119 }
120120 // AND the DatabaseChannel should have a message waiting if the service was added.
121- if len (* cfg .HardDefaults .Service .Status .DatabaseChannel ) != tc .dbMessages {
121+ if len (cfg .HardDefaults .Service .Status .DatabaseChannel ) != tc .dbMessages {
122122 t .Errorf ("%s\n DatabaseChannel mismatch\n want: %d messages\n got: %d" ,
123- packageName , tc .dbMessages , len (* cfg .HardDefaults .Service .Status .DatabaseChannel ))
124- for i := 0 ; i <= len (* cfg .HardDefaults .Service .Status .DatabaseChannel ); i ++ {
125- msg := <- * cfg .HardDefaults .Service .Status .DatabaseChannel
123+ packageName , tc .dbMessages , len (cfg .HardDefaults .Service .Status .DatabaseChannel ))
124+ for i := 0 ; i <= len (cfg .HardDefaults .Service .Status .DatabaseChannel ); i ++ {
125+ msg := <- cfg .HardDefaults .Service .Status .DatabaseChannel
126126 t .Log (msg )
127127 }
128128 }
@@ -285,11 +285,11 @@ func TestConfig_RenameService(t *testing.T) {
285285 if ! tc .fail {
286286 want = 1
287287 }
288- if len (* cfg .HardDefaults .Service .Status .DatabaseChannel ) != want {
288+ if len (cfg .HardDefaults .Service .Status .DatabaseChannel ) != want {
289289 t .Errorf ("%s\n DatabaseChannel mismatch\n want: %d messages\n got: %d" ,
290- packageName , want , len (* cfg .HardDefaults .Service .Status .DatabaseChannel ))
291- for i := 0 ; i <= len (* cfg .HardDefaults .Service .Status .DatabaseChannel ); i ++ {
292- msg := <- * cfg .HardDefaults .Service .Status .DatabaseChannel
290+ packageName , want , len (cfg .HardDefaults .Service .Status .DatabaseChannel ))
291+ for i := 0 ; i <= len (cfg .HardDefaults .Service .Status .DatabaseChannel ); i ++ {
292+ msg := <- cfg .HardDefaults .Service .Status .DatabaseChannel
293293 t .Log (msg )
294294 }
295295 }
@@ -347,11 +347,11 @@ func TestConfig_DeleteService(t *testing.T) {
347347 if tc .dbMessage {
348348 want = 1
349349 }
350- if len (* cfg .HardDefaults .Service .Status .DatabaseChannel ) != want {
350+ if len (cfg .HardDefaults .Service .Status .DatabaseChannel ) != want {
351351 t .Errorf ("%s\n DatabaseChannel mismatch\n want: %d messages\n got: %d" ,
352- packageName , want , len (* cfg .HardDefaults .Service .Status .DatabaseChannel ))
353- for i := 0 ; i <= len (* cfg .HardDefaults .Service .Status .DatabaseChannel ); i ++ {
354- msg := <- * cfg .HardDefaults .Service .Status .DatabaseChannel
352+ packageName , want , len (cfg .HardDefaults .Service .Status .DatabaseChannel ))
353+ for i := 0 ; i <= len (cfg .HardDefaults .Service .Status .DatabaseChannel ); i ++ {
354+ msg := <- cfg .HardDefaults .Service .Status .DatabaseChannel
355355 t .Log (msg )
356356 }
357357 }
0 commit comments