Skip to content

Commit 372a54d

Browse files
committed
Remove redundant assertion
Removed as it could be flaky and to keep the PMD violations to a minimum
1 parent 1b9f220 commit 372a54d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/test/java/org/kohsuke/github/GitHubTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ public void searchContentWithForks() {
162162
.sort(GHContentSearchBuilder.Sort.INDEXED)
163163
.order(GHDirection.DESC)
164164
.list();
165-
final GHContent topRepo1 = results.iterator().next();
166165

167166
final PagedSearchIterable<GHContent> resultsWithForks = gitHub.searchContent()
168167
.q("addClass")
@@ -171,9 +170,7 @@ public void searchContentWithForks() {
171170
.order(GHDirection.DESC)
172171
.fork(GHFork.PARENT_AND_FORKS)
173172
.list();
174-
final GHContent topRepo2 = resultsWithForks.iterator().next();
175173

176-
assertThat(topRepo1.getUrl(), not(equalTo(topRepo2.getUrl())));
177174
assertThat(results.getTotalCount(), lessThan(resultsWithForks.getTotalCount()));
178175
}
179176

0 commit comments

Comments
 (0)