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
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
github
nhooyr
websocket
Commits
9b8320ed
Unverified
Commit
9b8320ed
authored
Sep 27, 2019
by
Anmol Sethi
Browse files
Options
Downloads
Patches
Plain Diff
Remove fifo from wasm.sh
Should prevent the sporadic failures in CI.
parent
181b36eb
Branches
Branches containing commit
Tags
v1.6.4
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ci/wasm.sh
+5
-5
5 additions, 5 deletions
ci/wasm.sh
internal/wsjstest/main.go
+1
-0
1 addition, 0 deletions
internal/wsjstest/main.go
with
6 additions
and
5 deletions
ci/wasm.sh
+
5
−
5
View file @
9b8320ed
...
...
@@ -9,13 +9,13 @@ GOOS=js GOARCH=wasm go vet ./...
go
install
golang.org/x/lint/golint
GOOS
=
js
GOARCH
=
wasm golint
-set_exit_status
./...
wsjstestOut
=
"
$(
mktemp
-d
)
/stdout"
mkfifo
"
$wsjstestOut
"
wsjstestOut
=
"
$(
mktemp
)
"
go
install
./internal/wsjstest
timeout
30s wsjstest
>
"
$wsjstestOut
"
&
timeout
30s wsjstest
>
>
"
$wsjstestOut
"
&
wsjstestPID
=
$!
WS_ECHO_SERVER_URL
=
"
$(
timeout
10s
head
-n
1
"
$wsjstestOut
"
)
"
||
true
# See https://superuser.com/a/900134
WS_ECHO_SERVER_URL
=
"
$(
(
tail
-f
-n0
"
$wsjstestOut
"
&
)
|
timeout
10s
head
-n
1
)
"
if
[[
-z
$WS_ECHO_SERVER_URL
]]
;
then
echo
"./internal/wsjstest failed to start in 10s"
exit
1
...
...
@@ -25,7 +25,7 @@ go install github.com/agnivade/wasmbrowsertest
GOOS
=
js
GOARCH
=
wasm go
test
-exec
=
wasmbrowsertest ./...
-args
"
$WS_ECHO_SERVER_URL
"
if
!
wait
"
$wsjstestPID
"
;
then
echo
"wsjstest exited unsuccessfully"
echo
"
---
wsjstest exited unsuccessfully"
echo
"output:"
cat
"
$wsjstestOut
"
exit
1
...
...
This diff is collapsed.
Click to expand it.
internal/wsjstest/main.go
+
1
−
0
View file @
9b8320ed
...
...
@@ -36,6 +36,7 @@ func main() {
os
.
Exit
(
0
)
}))
wsURL
:=
strings
.
Replace
(
s
.
URL
,
"http"
,
"ws"
,
1
)
fmt
.
Printf
(
"%v
\n
"
,
wsURL
)
...
...
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