Skip to content

Commit fb6b4f2

Browse files
committed
test(spring): restore network stake test
Signed-off-by: Aman <amkr6207@gmail.com>
1 parent 43571ae commit fb6b4f2

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

hiero-enterprise-spring/src/test/java/org/hiero/spring/test/NetworkRepositoryTest.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,8 @@ void findNetworkFees() throws HieroException {
3535
}
3636

3737
@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-
}
38+
void findNetworkStake() throws HieroException {
39+
Optional<NetworkStake> result = networkRepository.stake();
4740

4841
Assertions.assertNotNull(result);
4942
Assertions.assertTrue(result.isPresent());

0 commit comments

Comments
 (0)