Skip to content

Commit

Permalink
prevent test from failing because dv alias is an integer #6863
Browse files Browse the repository at this point in the history
(It's only sometimes an integer, of course, randomly.)

This was previously fixed for other tests in pull request #3898.
  • Loading branch information
pdurbin committed Oct 20, 2021
1 parent c0d06a5 commit ccfb74a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public static void setUpClass() {
public void setUpDataverse() {
try {
// create random test name
testName = UUID.randomUUID().toString().substring(0, 8);
// "abc" added so the name/alias isn't an integer, a requirement for dataverse creation.
// Longer term, consider switching to UtilIT.getRandomDvAlias (and rewriting these tests).
testName = "abc" + UUID.randomUUID().toString().substring(0, 8);
// create user and set token
token = given()
.body("{"
Expand Down

0 comments on commit ccfb74a

Please sign in to comment.