9831: Use a timestamp instead of a serial number to come up with a unique name after...
[arvados.git] / services / api / test / functional / arvados / v1 / groups_controller_test.rb
index e9abf9d495bbaf937532e6ad44ebc1449254c66e..646089d5ddbcc31a16d0d749b0e828f4c58234be 100644 (file)
@@ -380,9 +380,8 @@ class Arvados::V1::GroupsControllerTest < ActionController::TestCase
     assert_not_equal(new_project['uuid'],
                      groups(:aproject).uuid,
                      "create returned same uuid as existing project")
-    assert_equal(new_project['name'],
-                 'A Project (2)',
-                 "new project name '#{new_project['name']}' was expected to be 'A Project (2)'")
+    assert_match(/^A Project \(\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d\.\d{3}Z\)$/,
+                 new_project['name'])
   end
 
   test "unsharing a project results in hiding it from previously shared user" do