diff --git a/clients/src/test/resources/junit-platform.properties b/clients/src/test/resources/junit-platform.properties index 05069923a7f2..3867db2528e3 100644 --- a/clients/src/test/resources/junit-platform.properties +++ b/clients/src/test/resources/junit-platform.properties @@ -13,3 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. junit.jupiter.params.displayname.default = "{displayName}.{argumentsWithNames}" +junit.jupiter.execution.timeout.default = 10 m diff --git a/connect/file/src/test/resources/junit-platform.properties b/connect/file/src/test/resources/junit-platform.properties new file mode 100644 index 000000000000..f7a8631066c6 --- /dev/null +++ b/connect/file/src/test/resources/junit-platform.properties @@ -0,0 +1,15 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +junit.jupiter.execution.timeout.default = 10 m diff --git a/connect/mirror/src/test/resources/junit-platform.properties b/connect/mirror/src/test/resources/junit-platform.properties new file mode 100644 index 000000000000..f7a8631066c6 --- /dev/null +++ b/connect/mirror/src/test/resources/junit-platform.properties @@ -0,0 +1,15 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +junit.jupiter.execution.timeout.default = 10 m diff --git a/connect/runtime/src/test/resources/junit-platform.properties b/connect/runtime/src/test/resources/junit-platform.properties new file mode 100644 index 000000000000..f7a8631066c6 --- /dev/null +++ b/connect/runtime/src/test/resources/junit-platform.properties @@ -0,0 +1,15 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +junit.jupiter.execution.timeout.default = 10 m diff --git a/core/src/test/resources/junit-platform.properties b/core/src/test/resources/junit-platform.properties new file mode 100644 index 000000000000..f7a8631066c6 --- /dev/null +++ b/core/src/test/resources/junit-platform.properties @@ -0,0 +1,15 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +junit.jupiter.execution.timeout.default = 10 m diff --git a/group-coordinator/src/test/resources/junit-platform.properties b/group-coordinator/src/test/resources/junit-platform.properties new file mode 100644 index 000000000000..f7a8631066c6 --- /dev/null +++ b/group-coordinator/src/test/resources/junit-platform.properties @@ -0,0 +1,15 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +junit.jupiter.execution.timeout.default = 10 m diff --git a/metadata/src/test/resources/junit-platform.properties b/metadata/src/test/resources/junit-platform.properties new file mode 100644 index 000000000000..f7a8631066c6 --- /dev/null +++ b/metadata/src/test/resources/junit-platform.properties @@ -0,0 +1,15 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +junit.jupiter.execution.timeout.default = 10 m diff --git a/raft/src/test/resources/junit-platform.properties b/raft/src/test/resources/junit-platform.properties new file mode 100644 index 000000000000..f7a8631066c6 --- /dev/null +++ b/raft/src/test/resources/junit-platform.properties @@ -0,0 +1,15 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +junit.jupiter.execution.timeout.default = 10 m diff --git a/server-common/src/test/resources/junit-platform.properties b/server-common/src/test/resources/junit-platform.properties index 05069923a7f2..3867db2528e3 100644 --- a/server-common/src/test/resources/junit-platform.properties +++ b/server-common/src/test/resources/junit-platform.properties @@ -13,3 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. junit.jupiter.params.displayname.default = "{displayName}.{argumentsWithNames}" +junit.jupiter.execution.timeout.default = 10 m diff --git a/shell/src/test/resources/junit-platform.properties b/shell/src/test/resources/junit-platform.properties new file mode 100644 index 000000000000..f7a8631066c6 --- /dev/null +++ b/shell/src/test/resources/junit-platform.properties @@ -0,0 +1,15 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +junit.jupiter.execution.timeout.default = 10 m diff --git a/storage/src/test/resources/junit-platform.properties b/storage/src/test/resources/junit-platform.properties new file mode 100644 index 000000000000..f7a8631066c6 --- /dev/null +++ b/storage/src/test/resources/junit-platform.properties @@ -0,0 +1,15 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +junit.jupiter.execution.timeout.default = 10 m diff --git a/streams/src/test/java/org/apache/kafka/streams/kstream/internals/KTableKTableLeftJoinTest.java b/streams/src/test/java/org/apache/kafka/streams/kstream/internals/KTableKTableLeftJoinTest.java index ee73849e9fc1..5806f9cfaacd 100644 --- a/streams/src/test/java/org/apache/kafka/streams/kstream/internals/KTableKTableLeftJoinTest.java +++ b/streams/src/test/java/org/apache/kafka/streams/kstream/internals/KTableKTableLeftJoinTest.java @@ -42,7 +42,9 @@ import org.apache.kafka.test.MockReducer; import org.apache.kafka.test.MockValueJoiner; import org.apache.kafka.test.StreamsTestUtils; +import org.junit.Rule; import org.junit.Test; +import org.junit.rules.Timeout; import java.time.Duration; import java.time.Instant; @@ -63,6 +65,8 @@ import static org.junit.Assert.assertTrue; public class KTableKTableLeftJoinTest { + @Rule + public Timeout globalTimeout = Timeout.seconds(600); private final String topic1 = "topic1"; private final String topic2 = "topic2"; private final String output = "output"; diff --git a/streams/src/test/resources/junit-platform.properties b/streams/src/test/resources/junit-platform.properties new file mode 100644 index 000000000000..f7a8631066c6 --- /dev/null +++ b/streams/src/test/resources/junit-platform.properties @@ -0,0 +1,15 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +junit.jupiter.execution.timeout.default = 10 m diff --git a/streams/streams-scala/src/test/resources/junit-platform.properties b/streams/streams-scala/src/test/resources/junit-platform.properties new file mode 100644 index 000000000000..f7a8631066c6 --- /dev/null +++ b/streams/streams-scala/src/test/resources/junit-platform.properties @@ -0,0 +1,15 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +junit.jupiter.execution.timeout.default = 10 m diff --git a/streams/test-utils/src/test/resources/junit-platform.properties b/streams/test-utils/src/test/resources/junit-platform.properties new file mode 100644 index 000000000000..f7a8631066c6 --- /dev/null +++ b/streams/test-utils/src/test/resources/junit-platform.properties @@ -0,0 +1,15 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +junit.jupiter.execution.timeout.default = 10 m diff --git a/tools/src/test/resources/junit-platform.properties b/tools/src/test/resources/junit-platform.properties new file mode 100644 index 000000000000..f7a8631066c6 --- /dev/null +++ b/tools/src/test/resources/junit-platform.properties @@ -0,0 +1,15 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +junit.jupiter.execution.timeout.default = 10 m