Fix a race in test

This commit is contained in:
Andy Wang 2020-04-24 01:10:45 +01:00
parent b9c3e64750
commit 13c1c3705b
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ func TestLocalManager_ListAllUsers(t *testing.T) {
users = append(users, newUser)
wg.Add(1)
go func() {
err = mgr.WriteUserInfo(newUser)
err := mgr.WriteUserInfo(newUser)
if err != nil {
t.Fatal(err)
}