Adding the assume only valid when live

This commit is contained in:
harrington
2019-11-12 13:00:51 -05:00
parent a3fe95d1e4
commit 5da2caa616

View File

@@ -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",