set the timestamp in the token name to match the test data

This commit is contained in:
harrington
2019-11-12 15:01:14 -05:00
parent ad0a24ad2f
commit 8cb7210c46

View File

@@ -30,7 +30,7 @@ public class Github2faTest extends AbstractGitHubWireMockTest {
String timestamp = dateFormat.format(new Date());
List<String> asList = Arrays.asList("repo", "gist", "write:packages", "read:packages", "delete:packages",
"user", "delete_repo");
String string = "Test2faTokenCreate-"+timestamp;// + timestamp;// use time stamp to ensure the token creations do not collide with older tokens
String string = "Test2faTokenCreate-2019-11-12_14-50-03";//+timestamp;// + timestamp;// use time stamp to ensure the token creations do not collide with older tokens
GHAuthorization token=null;
try {