Call wg.Add(1) outside of goroutine (#5716)

This commit is contained in:
Calvin Leung Huang 2018-11-06 16:36:13 -08:00 committed by GitHub
parent 583003cf42
commit f63bcdf106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,8 +124,8 @@ func TestAppRole_TidyDanglingAccessors_RaceTest(t *testing.T) {
t.Fatal(err)
}
}
wg.Add(1)
go func() {
wg.Add(1)
defer wg.Done()
roleSecretIDReq := &logical.Request{
Operation: logical.UpdateOperation,