Verified Commit 719bed12 authored by meskio's avatar meskio 🏗
Browse files

go vet fix and test error improvement

parent 1a717638
Pipeline #39162 failed with stage
in 1 minute and 59 seconds
...@@ -293,8 +293,6 @@ func (c *TorContext) TestBridgeLines(bridgeLines []string) *TestResult { ...@@ -293,8 +293,6 @@ func (c *TorContext) TestBridgeLines(bridgeLines []string) *TestResult {
return result return result
} }
} }
return result
} }
// dispatcher reads new bridge test requests, triggers the test, and writes the // dispatcher reads new bridge test requests, triggers the test, and writes the
......
...@@ -73,11 +73,11 @@ func TestBridgeTest(t *testing.T) { ...@@ -73,11 +73,11 @@ func TestBridgeTest(t *testing.T) {
r, _ := result.Bridges[defaultBridge1] r, _ := result.Bridges[defaultBridge1]
if !r.Functional { if !r.Functional {
t.Errorf("Default bridge #1 deemed non-functional.") t.Errorf("Default bridge #1 deemed non-functional: %v", r.Error)
} }
r, _ = result.Bridges[defaultBridge2] r, _ = result.Bridges[defaultBridge2]
if !r.Functional { if !r.Functional {
t.Errorf("Default bridge #2 deemed non-functional.") t.Errorf("Default bridge #2 deemed non-functional: %v", r.Error)
} }
r, _ = result.Bridges[bogusBridge] r, _ = result.Bridges[bogusBridge]
if r.Functional { if r.Functional {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment