Skip to content

Commit 7efb190

Browse files
authored
Remove redundant test assertion incompatible with latest credentials plugin (#3942)
Existing assertions already check that the credential usage tracking is correct. This assertion adds no real value to the test. Testing done: * Confirmed that tests pass with older credentials plugin and with latest credentials plugin.
1 parent 36d4678 commit 7efb190

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/test/java/hudson/plugins/git/GitSCMTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ void trackCredentials() throws Exception {
262262

263263
JenkinsRule.WebClient wc = r.createWebClient();
264264
HtmlPage page = wc.goTo("credentials/store/system/domain/_/credentials/" + credential.getId());
265-
assertThat("Have usage tracking reported", page.getElementById("usage"), notNullValue());
266265
assertThat("No fingerprint created until first use", page.getElementById("usage-missing"), notNullValue());
267266
assertThat("No fingerprint created until first use", page.getElementById("usage-present"), nullValue());
268267

0 commit comments

Comments
 (0)