Skip to content

Commit 1c3a1ee

Browse files
committed
#88: remove test case, make timeout 5 min
1 parent 8ea1866 commit 1c3a1ee

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/install-and-test.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@ jobs:
8484

8585
- name: Run tests (Serial)
8686
run: |
87-
pytest --timeout=1
87+
pytest --timeout=300
8888
8989
- name: Run tests (MPI, n=1)
9090
run: |
91-
mpirun -n 1 python -m pytest tests/romtools/* --with-mpi --timeout=1
91+
mpirun -n 1 python -m pytest tests/romtools/* --with-mpi --timeout=300
9292
9393
- name: Run tests (MPI, n=3)
9494
run: |
95-
mpirun -n 3 python -m pytest tests/romtools/* --with-mpi --timeout=1
95+
mpirun -n 3 python -m pytest tests/romtools/* --with-mpi --timeout=300
9696
9797
- name: Run tests (MPI, n=4)
9898
run: |
99-
mpirun -n 4 python -m pytest tests/romtools/* --with-mpi --timeout=1
99+
mpirun -n 4 python -m pytest tests/romtools/* --with-mpi --timeout=300

tests/romtools/test_trial_space_svd_mpi.py

-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ def test_trial_space_from_pod_mpi():
5757
myTrialSpace = rt.TrialSpaceFromPOD(snaps, svdFnc=MyFakeSvd(comm))
5858
U = myTrialSpace.get_basis()
5959
k = myTrialSpace.get_dimension()
60-
for i in range(100000000000000):
61-
x = i ** 2
6260
if rank == 0:
6361
assert np.allclose(U, np.zeros((3, 3, 2)))
6462
assert np.allclose(2, k)

0 commit comments

Comments
 (0)