Skip to content

Added two functions moveToEndOfQueue and clearQueue, the first functi…#177

Open
dwei4828 wants to merge 1 commit intoUB-CSE:developfrom
dwei4828:develop
Open

Added two functions moveToEndOfQueue and clearQueue, the first functi…#177
dwei4828 wants to merge 1 commit intoUB-CSE:developfrom
dwei4828:develop

Conversation

@dwei4828
Copy link
Copy Markdown

…on can be use to move the student to the end of the queue and second function clearQueue clears the queue in the database. Added a message when a student trying to enter the queue with a username that have been used by some other students in the queue. Added testcases for each function using the TestingDatabase, and since the order of the timestamp is hard to mimic using real time, I just set the timestamp on my own in the testcases.

…on can be use to move the student to the end of the queue and second function clear queue clears the queue in the database. Added a message when a student trying to enter the queue with a username that have been used by some other students in the queue. Added testcases for each function using the TestingDatabase, and since the order of the timestamp is hard to mimic using real time, I just set the timestamp on my own in the testcases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant