good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
websocket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
websocket
Commits
773d2f29
Unverified
Commit
773d2f29
authored
5 years ago
by
Anmol Sethi
Browse files
Options
Downloads
Patches
Plain Diff
Fix racey wasm test
parent
ba0fd40f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.github/workflows/ci.yml
+3
-3
3 additions, 3 deletions
.github/workflows/ci.yml
ci/image/Dockerfile
+1
-1
1 addition, 1 deletion
ci/image/Dockerfile
ci/wasmtest.sh
+1
-1
1 addition, 1 deletion
ci/wasmtest.sh
websocket_js.go
+1
-1
1 addition, 1 deletion
websocket_js.go
with
6 additions
and
6 deletions
.github/workflows/ci.yml
+
3
−
3
View file @
773d2f29
...
...
@@ -4,19 +4,19 @@ on: [push]
jobs
:
fmt
:
runs-on
:
ubuntu-latest
container
:
nhooyr/websocket-ci@sha256:
54a12b52be9
8d2d
1
58
8a054cfce35d17705c9b45546478d8bcdbac2a89a90001
container
:
nhooyr/websocket-ci@sha256:
ea94e07
8d2d58
9d654a2c759d952bf4199c754d80dadb20696dc3902359027cb
steps
:
-
uses
:
actions/checkout@v1
-
run
:
make fmt
lint
:
runs-on
:
ubuntu-latest
container
:
nhooyr/websocket-ci@sha256:
54a12b52be9
8d2d
1
58
8a054cfce35d17705c9b45546478d8bcdbac2a89a90001
container
:
nhooyr/websocket-ci@sha256:
ea94e07
8d2d58
9d654a2c759d952bf4199c754d80dadb20696dc3902359027cb
steps
:
-
uses
:
actions/checkout@v1
-
run
:
make lint
test
:
runs-on
:
ubuntu-latest
container
:
nhooyr/websocket-ci@sha256:
54a12b52be9
8d2d
1
58
8a054cfce35d17705c9b45546478d8bcdbac2a89a90001
container
:
nhooyr/websocket-ci@sha256:
ea94e07
8d2d58
9d654a2c759d952bf4199c754d80dadb20696dc3902359027cb
steps
:
-
uses
:
actions/checkout@v1
-
run
:
make test
...
...
This diff is collapsed.
Click to expand it.
ci/image/Dockerfile
+
1
−
1
View file @
773d2f29
...
...
@@ -10,7 +10,7 @@ ENV PATH=$GOPATH/bin:$PATH
ENV
GOFLAGS="-mod=readonly"
ENV
PAGER=cat
ENV
CI=true
ENV
MAKEFLAGS="-
j
--output-sync
target"
ENV
MAKEFLAGS="-
-jobs=8
--output-sync
=
target"
COPY
./ci/image/gitignore /root/.config/git/ignore
RUN
git config
--system
color.ui always
...
...
This diff is collapsed.
Click to expand it.
ci/wasmtest.sh
+
1
−
1
View file @
773d2f29
...
...
@@ -4,7 +4,7 @@ set -euo pipefail
wsjstestOut
=
"
$(
mktemp
-d
)
/wsjstestOut"
mkfifo
"
$wsjstestOut
"
timeout
1
5s wsjstest
>
"
$wsjstestOut
"
&
timeout
4
5s wsjstest
>
"
$wsjstestOut
"
&
wsjstestPID
=
"
$!
"
WS_ECHO_SERVER_URL
=
"
$(
head
-n
1
"
$wsjstestOut
"
)
"
...
...
This diff is collapsed.
Click to expand it.
websocket_js.go
+
1
−
1
View file @
773d2f29
...
...
@@ -242,7 +242,7 @@ type DialOptions struct {
func
Dial
(
ctx
context
.
Context
,
url
string
,
opts
*
DialOptions
)
(
*
Conn
,
*
http
.
Response
,
error
)
{
c
,
resp
,
err
:=
dial
(
ctx
,
url
,
opts
)
if
err
!=
nil
{
return
nil
,
resp
,
fmt
.
Errorf
(
"failed to websocket dial: %w"
,
err
)
return
nil
,
resp
,
fmt
.
Errorf
(
"failed to websocket dial
%q
: %w"
,
url
,
err
)
}
return
c
,
resp
,
nil
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment