Skip to content

Commit 252ec74

Browse files
committed
fix test
Signed-off-by: Darya Melentsova <[email protected]>
1 parent 0ba5356 commit 252ec74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

prometheus/graphite/bridge_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ func ExampleBridge() {
468468
func TestErrorHandler(t *testing.T) {
469469
var internalError error
470470
c := &Config{
471-
URL: "",
471+
URL: "localhost",
472472
Gatherer: prometheus.DefaultGatherer,
473473
Prefix: "prefix",
474474
Interval: 5 * time.Second,
@@ -488,8 +488,8 @@ func TestErrorHandler(t *testing.T) {
488488
// Start pushing metrics to Graphite in the Run() loop.
489489
b.Run(ctx)
490490

491-
// We haven't specified tcp address
492-
expError := fmt.Errorf("dial tcp: missing address")
491+
// We haven't specified port
492+
expError := fmt.Errorf("dial tcp: address localhost: missing port in address")
493493
if internalError.Error() != expError.Error() {
494494
t.Fatalf("Expected: '%s', actual: '%s'", expError, internalError)
495495
}

0 commit comments

Comments
 (0)