Skip to content

Commit 3824440

Browse files
committed
simplify: read WOPI_PORT from env (exported by ocis-setup) instead of deriving by suite name
1 parent 27fc6b3 commit 3824440

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎ocis-test/action.yml‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,7 @@ runs:
153153
FILE_ID_ENC=$(echo "$APP_URL" | sed 's/.*files\///')
154154
fi
155155
156-
# wopi-builtin: ocis collaboration service on :9320; wopi-cs3: cs3org/wopiserver on :9300
157-
if [[ "$SUITE" == "wopi-cs3" ]]; then
158-
WOPI_PORT=9300
159-
else
160-
WOPI_PORT=9320
161-
fi
156+
# WOPI_PORT is exported by ocis-setup (9320 for fakeoffice/builtin, 9300 for cs3-wopi)
162157
WOPI_SRC="http://localhost:${WOPI_PORT}/wopi/files/${FILE_ID_ENC}"
163158
echo "WOPI_SRC=${WOPI_SRC}"
164159

0 commit comments

Comments
 (0)