Skip to content

Commit

Permalink
[MINVOKER-241] Fix invalid timeout-based ITs
Browse files Browse the repository at this point in the history
  • Loading branch information
rfscholte committed Jan 17, 2019
1 parent 44455e5 commit 77a56c6
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<version>3.0.1</version>
<version>3.1.0</version>
<configuration>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<preBuildHookScript>setup</preBuildHookScript>
Expand Down
1 change: 0 additions & 1 deletion src/it/exec-timeout-invoker-level/invoker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@

invoker.goals = verify
invoker.buildResult = failure
invoker.timeoutInSeconds = 2
22 changes: 22 additions & 0 deletions src/it/exec-timeout-invoker-level/verify.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* 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.
*/
def buildLog = new File( basedir, 'target/it/basic/build.log' )

assert !buildLog.text.contains('Total time: ')
assert !buildLog.text.contains('Finished at: ')
1 change: 0 additions & 1 deletion src/it/exec-timeout-mojo-level/invoker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@

invoker.goals = verify
invoker.buildResult = failure
invoker.timeoutInSeconds = 2
22 changes: 22 additions & 0 deletions src/it/exec-timeout-mojo-level/verify.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* 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.
*/
def buildLog = new File( basedir, 'target/it/basic/build.log' )

assert !buildLog.text.contains('Total time: ')
assert !buildLog.text.contains('Finished at: ')

0 comments on commit 77a56c6

Please sign in to comment.