Skip to content

Commit b686afd

Browse files
committed
chore: clean
1 parent 439b8f1 commit b686afd

File tree

3 files changed

+15
-26
lines changed

3 files changed

+15
-26
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Java CI
22

3-
on: [ push, workflow_dispatch ]
3+
on:
4+
- push
5+
- workflow_dispatch
6+
#run every hour
7+
- schedule:
8+
- cron: '0 * * * *'
49

510
env:
611
SPP_PROBE_PLATFORM_HOST: "https://cloud.sourceplus.plus"

src/test/java/spp/demo/test/TestHealthIndicator.java

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/test/java/spp/demo/test/TestStabilityTest.java renamed to src/test/java/spp/demo/test/TestStabilityIndicator.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import org.junit.jupiter.api.Disabled;
44
import org.junit.jupiter.api.Test;
55

6-
public class TestStabilityTest {
6+
public class TestStabilityIndicator {
77

88
@Test
9-
public void success100Percent() {
9+
public void success() {
1010
}
1111

1212
@Test
@@ -21,6 +21,13 @@ public void fail50Percent() {
2121
}
2222
}
2323

24+
@Test
25+
public void fail25Percent() {
26+
if (Math.random() > 0.75) {
27+
throw new RuntimeException("fail 25%");
28+
}
29+
}
30+
2431
@Disabled
2532
@Test
2633
public void neverExecuted() {

0 commit comments

Comments
 (0)