14845: Fix inconsistent timeout error message.
[arvados.git] / services / login-sync / test / test_add_user.rb
index db2e24151d38cf7c19813a1779be6ba47353ef30..17942c2cffa784993b4338dc64711e56f5e17028 100644 (file)
@@ -20,7 +20,7 @@ class TestAddUser < Minitest::Test
     # exist on the host, but is insensitive to the admin group (groups
     # are quietly ignored by login-sync if they don't exist on the
     # current host).
-    assert_match %r{useradd -m -c adminroot -s /bin/bash -G docker(,admin)?(,fuse)? adminroot}, spied
+    assert_match %r{useradd -m -c adminroot -s /bin/bash -G (docker)?(,admin)?(,fuse)? adminroot}, spied
   end
 
   def test_useradd_success