Skip to content

Commit 1922d9c

Browse files
committed
Fix to sleep fixed time
1 parent 7b4961b commit 1922d9c

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

.github/workflows/test-permission.yaml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,7 @@ jobs:
3636
cassandra:3.0
3737
3838
- name: Wait for Cassandra to be ready
39-
run: |
40-
for i in {1..30}; do
41-
if docker exec cassandra cqlsh -e "SHOW VERSION" 2>/dev/null; then
42-
echo "Cassandra is ready"
43-
break
44-
fi
45-
echo "Waiting for Cassandra to start... (attempt $i/30)"
46-
sleep 10
47-
done
39+
run: sleep 60
4840

4941
- name: Execute Gradle 'integrationTestCassandraPermission' task
5042
run: ./gradlew integrationTestCassandraPermission
@@ -82,15 +74,7 @@ jobs:
8274
cassandra:3.11
8375
8476
- name: Wait for Cassandra to be ready
85-
run: |
86-
for i in {1..30}; do
87-
if docker exec cassandra cqlsh -e "SHOW VERSION" 2>/dev/null; then
88-
echo "Cassandra is ready"
89-
break
90-
fi
91-
echo "Waiting for Cassandra to start... (attempt $i/30)"
92-
sleep 10
93-
done
77+
run: sleep 60
9478

9579
- name: Execute Gradle 'integrationTestCassandraPermission' task
9680
run: ./gradlew integrationTestCassandraPermission

0 commit comments

Comments
 (0)