[JAVA-2607] Change behavior of ClusterFixture#getServerVersion to wait for an ok server Created: 18/Sep/17 Updated: 29/Oct/23 Resolved: 19/Sep/17 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Test Coverage |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Jeffrey Yemin | Assignee: | Jeffrey Yemin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
ClusterFixture#getServerVersion should wait until there is at least one server that's reported it's version. Otherwise in some situations, like when the very first executed test has an @Ignore that checks the server version, the check will fail since ClusterDescription#getAny will return an empty list. |
| Comments |
| Comment by Jeffrey Yemin [ 19/Sep/17 ] |
|
Fixed in https://github.com/mongodb/mongo-java-driver/commit/ff777fbba55de0c0839650df5fc697c0c349b2b5 |