Skip to content

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecirioli committed Sep 4, 2024
1 parent 8f1e903 commit 791ef3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/org/jenkinsci/plugins/oic/PluginTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ public void testAccessUsingJenkinsApiTokens() throws Exception {
jenkins.setSecurityRealm(new TestRealm(wireMockRule, null, EMAIL_FIELD, GROUPS_FIELD, AUTO_CONFIG_FIELD));
// explicitly ensure allowTokenAccessWithoutOicSession is disabled
TestRealm testRealm = (TestRealm) jenkins.getSecurityRealm();
testRealm.setAllowTokenAccessWithoutOicSession(true);
testRealm.setAllowTokenAccessWithoutOicSession(false);

// login and assert normal auth is working
mockTokenReturnsIdTokenWithGroup(PluginTest::withoutRefreshToken);
Expand Down

0 comments on commit 791ef3c

Please sign in to comment.