We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43571ae commit fb6b4f2Copy full SHA for fb6b4f2
1 file changed
hiero-enterprise-spring/src/test/java/org/hiero/spring/test/NetworkRepositoryTest.java
@@ -35,15 +35,8 @@ void findNetworkFees() throws HieroException {
35
}
36
37
@Test
38
- void findNetworkStake() throws HieroException, InterruptedException {
39
- Optional<NetworkStake> result = Optional.empty();
40
-
41
- for (int attempt = 0; attempt < 10 && result.isEmpty(); attempt++) {
42
- result = networkRepository.stake();
43
- if (result.isEmpty()) {
44
- Thread.sleep(500);
45
- }
46
+ void findNetworkStake() throws HieroException {
+ Optional<NetworkStake> result = networkRepository.stake();
47
48
Assertions.assertNotNull(result);
49
Assertions.assertTrue(result.isPresent());
0 commit comments