Closed snej closed 6 months ago
Totals | |
---|---|
Change from base Build 8892157277: | 0.001% |
Covered Lines: | 6160 |
Relevant Lines: | 6246 |
@snej It would be better to add a test case to Client.StopTime().
Added a check to TestClientStop()
. I also noticed a race condition in that test (comparing a time against
time.Now) and fixed it to allow a one-second discrepancy.
My persistence hook needs to know what time a client disconnected. The field
Client.State.disconnected
has that information but it's not exposed in the API, so I added a simple public accessor methodClient.StopTime()
.