mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-23 15:50:48 +00:00
Adding the assume only valid when live
This commit is contained in:
@@ -24,6 +24,8 @@ public class Github2faTest extends AbstractGitHubWireMockTest {
|
||||
}
|
||||
@Test
|
||||
public void test2faToken() throws IOException {
|
||||
assertFalse("Test only valid when not proxying", mockGitHub.isUseProxy());
|
||||
|
||||
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss");
|
||||
String timestamp = dateFormat.format(new Date());
|
||||
List<String> asList = Arrays.asList("repo", "gist", "write:packages", "read:packages", "delete:packages",
|
||||
|
||||
Reference in New Issue
Block a user