Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Anti-censorship
bridgestrap
Commits
719bed12
Verified
Commit
719bed12
authored
May 20, 2022
by
meskio
👷
Browse files
go vet fix and test error improvement
parent
1a717638
Pipeline
#39162
failed with stage
in 1 minute and 59 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tor.go
View file @
719bed12
...
...
@@ -293,8 +293,6 @@ func (c *TorContext) TestBridgeLines(bridgeLines []string) *TestResult {
return
result
}
}
return
result
}
// dispatcher reads new bridge test requests, triggers the test, and writes the
...
...
tor_test.go
View file @
719bed12
...
...
@@ -73,11 +73,11 @@ func TestBridgeTest(t *testing.T) {
r
,
_
:=
result
.
Bridges
[
defaultBridge1
]
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
]
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
]
if
r
.
Functional
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment