File tree Expand file tree Collapse file tree 4 files changed +1
-37
lines changed
spring-cloud-kubernetes-fabric8-leader/src/test/java/org/springframework/cloud/kubernetes/fabric8/leader
spring-cloud-kubernetes-integration-tests
spring-cloud-kubernetes-fabric8-client-catalog-watcher
spring-cloud-kubernetes-fabric8-client-discovery
spring-cloud-kubernetes-fabric8-client-istio Expand file tree Collapse file tree 4 files changed +1
-37
lines changed Original file line number Diff line number Diff line change 18
18
19
19
import java .time .Duration ;
20
20
21
- import org .awaitility .Awaitility ;
22
21
import org .junit .jupiter .api .AfterEach ;
23
22
import org .junit .jupiter .api .BeforeEach ;
24
23
import org .junit .jupiter .api .Test ;
@@ -77,14 +76,6 @@ void shouldStart() {
77
76
assertThat (leaderInitiator .isRunning ()).isTrue ();
78
77
verify (mockFabric8LeaderRecordWatcher ).start ();
79
78
verify (mockFabric8PodReadinessWatcher ).start ();
80
- boolean [] updateCalled = new boolean [1 ];
81
- Mockito .doAnswer (x -> {
82
- updateCalled [0 ] = true ;
83
- return null ;
84
- }).when (mockFabric8LeadershipController ).update ();
85
-
86
- Awaitility .await ().atMost (Duration .ofSeconds (3 )).until (() -> updateCalled [0 ]);
87
-
88
79
verify (mockFabric8LeadershipController , atLeastOnce ()).update ();
89
80
}
90
81
Original file line number Diff line number Diff line change 36
36
</dependency >
37
37
38
38
</dependencies >
39
- <build >
40
- <resources >
41
- <resource >
42
- <directory >../src/main/resources</directory >
43
- <filtering >true</filtering >
44
- </resource >
45
- <resource >
46
- <directory >src/main/resources</directory >
47
- <filtering >true</filtering >
48
- </resource >
49
- </resources >
50
- </build >
51
39
</project >
Original file line number Diff line number Diff line change 44
44
</dependency >
45
45
46
46
</dependencies >
47
- <build >
48
- <resources >
49
- <resource >
50
- <directory >../src/main/resources</directory >
51
- <filtering >true</filtering >
52
- </resource >
53
- <resource >
54
- <directory >src/main/resources</directory >
55
- <filtering >true</filtering >
56
- </resource >
57
- </resources >
58
- </build >
59
47
60
48
</project >
Original file line number Diff line number Diff line change 31
31
</dependency >
32
32
33
33
</dependencies >
34
+
34
35
<build >
35
36
<resources >
36
37
<resource >
37
38
<directory >../src/main/resources</directory >
38
39
<filtering >true</filtering >
39
40
</resource >
40
- <resource >
41
- <directory >src/main/resources</directory >
42
- <filtering >true</filtering >
43
- </resource >
44
41
</resources >
45
42
</build >
46
43
You can’t perform that action at this time.
0 commit comments