Skip to content

Commit aac5b10

Browse files
committed
fix error when setting ut timeout value
1 parent b6f86b8 commit aac5b10

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

python/paddle/fluid/tests/unittests/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,11 +621,14 @@ endif()
621621
if (WITH_DISTRIBUTE)
622622
set_tests_properties(test_communicator_half_async PROPERTIES TIMEOUT 120)
623623
endif()
624+
624625
if (WITH_DISTRIBUTE AND NOT APPLE)
626+
if(WITH_GPU)
627+
set_tests_properties(test_c_comm_init_op PROPERTIES TIMEOUT 120)
628+
set_tests_properties(test_fleet_checkpoint PROPERTIES TIMEOUT 120)
629+
set_tests_properties(test_launch PROPERTIES TIMEOUT 120)
630+
endif()
625631
set_tests_properties(test_fleet_launch PROPERTIES TIMEOUT 120)
626-
set_tests_properties(test_c_comm_init_op PROPERTIES TIMEOUT 120)
627-
set_tests_properties(test_fleet_checkpoint PROPERTIES TIMEOUT 120)
628-
set_tests_properties(test_launch PROPERTIES TIMEOUT 120)
629632
endif()
630633

631634
# setting timeout value as 15S

0 commit comments

Comments
 (0)