Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-ws-transport
Commits
4a58c98e
Commit
4a58c98e
authored
Sep 17, 2019
by
Alex Browne
Committed by
Steven Allen
Sep 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expand comment about time.Sleep hack
parent
c413b3db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
browser_integration_browser_test.go
browser_integration_browser_test.go
+4
-1
No files found.
browser_integration_browser_test.go
View file @
4a58c98e
...
@@ -51,6 +51,9 @@ func TestInBrowser(t *testing.T) {
...
@@ -51,6 +51,9 @@ func TestInBrowser(t *testing.T) {
}
}
// TODO(albrow): This hack is necessary in order to give the reader time to
// TODO(albrow): This hack is necessary in order to give the reader time to
// finish. We should find some way to remove it.
// finish. As soon as this test function returns, the browser window is
// closed, which means there is no time for the other end of the connection to
// read the "pong" message. We should find some way to remove this hack if
// possible.
time
.
Sleep
(
1
*
time
.
Second
)
time
.
Sleep
(
1
*
time
.
Second
)
}
}
Write
Preview
Markdown
is supported
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