File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -468,7 +468,7 @@ func ExampleBridge() {
468
468
func TestErrorHandler (t * testing.T ) {
469
469
var internalError error
470
470
c := & Config {
471
- URL : "graphite.example.org:3099 " ,
471
+ URL : "" ,
472
472
Gatherer : prometheus .DefaultGatherer ,
473
473
Prefix : "prefix" ,
474
474
Interval : 5 * time .Second ,
@@ -488,8 +488,8 @@ func TestErrorHandler(t *testing.T) {
488
488
// Start pushing metrics to Graphite in the Run() loop.
489
489
b .Run (ctx )
490
490
491
- // There are obviously no hosts like "graphite.example.com" available during the tests.
492
- expError := fmt .Errorf ("dial tcp: lookup graphite.example.org: no such host " )
491
+ // We haven't specified tcp address
492
+ expError := fmt .Errorf ("dial tcp: missing address " )
493
493
if internalError .Error () != expError .Error () {
494
494
t .Fatalf ("Expected: '%s', actual: '%s'" , expError , internalError )
495
495
}
You can’t perform that action at this time.
0 commit comments