Public bug reported:

For unit testing, or scripted user management for that matter, there may be the 
need to create and remove the same user multiple times over a short period. The 
current deletion method is to alter the username and e-mail address to suffix 
deleted.time()
Time isn't precise enough and you end up with collisions.

Changing to use microtime fixes these issues and allows for unit tests
to be run

** Affects: mahara
     Importance: Wishlist
     Assignee: Andrew Nicols (dobedobedoh)
         Status: In Progress


** Tags: accuracy deletion phpunit user

** Changed in: mahara
       Status: New => In Progress

** Changed in: mahara
   Importance: Undecided => Wishlist

** Changed in: mahara
     Assignee: (unassigned) => Andrew Nicols (dobedobedoh)

** Changed in: mahara
    Milestone: None => 1.5.0

-- 
You received this bug notification because you are a member of Mahara
Core, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/841723

Title:
  Use microtime instead of float for user deletion

Status in Mahara ePortfolio:
  In Progress

Bug description:
  For unit testing, or scripted user management for that matter, there may be 
the need to create and remove the same user multiple times over a short period. 
The current deletion method is to alter the username and e-mail address to 
suffix deleted.time()
  Time isn't precise enough and you end up with collisions.

  Changing to use microtime fixes these issues and allows for unit tests
  to be run

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/841723/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-core
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mahara-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to