Skip to content

Commit

Permalink
https://github.com/jenkinsci/mail-watcher-plugin/pull/80#discussion_r…
Browse files Browse the repository at this point in the history
…1304265260
  • Loading branch information
basil committed Aug 24, 2023
1 parent 9eedaed commit 0815db8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 27 deletions.
27 changes: 0 additions & 27 deletions pom.xml
Expand Up @@ -94,31 +94,4 @@
<scope>test</scope>
</dependency>
</dependencies>

<profiles>
<profile>
<id>windows-ci</id>
<activation>
<os>
<family>Windows</family>
</os>
<property>
<name>env.CI</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- TODO fails on CI on Windows for inscrutable reasons -->
<excludes>
<exclude>org.jenkinsci.plugins.mailwatcher.NodeStatusTest</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Expand Up @@ -26,11 +26,13 @@
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.endsWith;
import static org.junit.Assert.assertEquals;
import static org.junit.Assume.assumeFalse;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import hudson.Functions;
import hudson.Launcher;
import hudson.maven.MavenModuleSet;
import hudson.model.BuildListener;
Expand Down Expand Up @@ -203,6 +205,7 @@ private static final class SomeOfflineCause extends OfflineCause {}

@Test @Issue("JENKINS-23496")
public void doNotNotifySlaveAvailabilityWhenNotAwailable() throws Exception {
assumeFalse(Functions.isWindows());
MailWatcherMailer mailer = mock(MailWatcherMailer.class);
installAwailabilityListener(mailer);

Expand Down

0 comments on commit 0815db8

Please sign in to comment.