Skip to content

Commit e509a03

Browse files
authored
Remove unnecessary sleep between test runs (#746)
The introduction of `sleep` between test runs in `dashboard_spec.js` and `detector_list_spec.js` was initially implemented to handle timing issues. However, these tests were actually failing due to a recent URL change, as detailed in opensearch-project/opensearch-dashboards-functional-test#1257. With the root cause of the failures addressed, the delays introduced by `sleep` commands are now redundant and can potentially slow down the testing process without providing any benefit. This PR removes these unnecessary sleep intervals between test executions. **Testing Done:** - Confirmed that all remote Cypress tests pass without the sleep intervals. Signed-off-by: Kaituo Li <kaituo@amazon.com>
1 parent d0e0061 commit e509a03

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/remote-integ-tests-workflow.yml

+6-11
Original file line numberDiff line numberDiff line change
@@ -142,21 +142,16 @@ jobs:
142142
- name: Finding spec files and store to output
143143
id: finding-files
144144
run: |
145-
echo "::set-output name=FILELIST::$(find cypress/integration/plugins/anomaly-detection-dashboards-plugin -name '*.js' -print)"
146-
working-directory: opensearch-dashboards-functional-test
147-
148-
- name: Print spec files from output
149-
run: |
150-
IFS="," read -a myarray <<< ${{ steps.finding-files.outputs.FILELIST }}
151-
for i in "${myarray[@]}"; do
152-
echo "${i}"
153-
done
145+
{
146+
echo 'FILELIST<<EOF'
147+
find cypress/integration/plugins/anomaly-detection-dashboards-plugin -name '*.js' -print
148+
echo EOF
149+
} >> "$GITHUB_ENV"
154150
working-directory: opensearch-dashboards-functional-test
155151

156152
- name: Run spec files from output
157153
run: |
158-
IFS="," read -a myarray <<< ${{ steps.finding-files.outputs.FILELIST }}
159-
for i in "${myarray[@]}"; do
154+
for i in $FILELIST; do
160155
yarn cypress:run-without-security --browser electron --spec "${i}"
161156
sleep 60
162157
done

0 commit comments

Comments
 (0)