Skip to content

Commit b640574

Browse files
authored
Merge pull request #252 from atc0005/fix-serviceoutput-test
Fix `TestEmptyServiceOutputProducesNoOutput` test
2 parents 82bab11 + b067293 commit b640574

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

unexported_test.go

+2-5
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,15 @@ func TestEmptyServiceOutputProducesNoOutput(t *testing.T) {
152152
// Explicitly indicate that the field is empty (default/zero value).
153153
plugin.ServiceOutput = ""
154154

155-
// At this point the collected performance data collection is empty, the
156-
// field used to hold the entries is nil. An attempt to process the empty
157-
// collection should result in no output.
158-
plugin.handlePerformanceData(&outputBuffer)
155+
plugin.handleServiceOutputSection(&outputBuffer)
159156

160157
want := ""
161158
got := outputBuffer.String()
162159

163160
if want != got {
164161
t.Errorf("\nwant %q\ngot %q", want, got)
165162
} else {
166-
t.Logf("OK: Empty performance data collection produces no output.")
163+
t.Logf("OK: Empty service output field produces no output.")
167164
}
168165

169166
}

0 commit comments

Comments
 (0)