Fix race in test

This commit is contained in:
Jeff Mitchell
2018-07-25 00:18:26 -04:00
parent aeef351629
commit fb94d03b75

View File

@@ -132,7 +132,7 @@ func TestAppRole_TidyDanglingAccessors_RaceTest(t *testing.T) {
Path: "role/role1/secret-id",
Storage: storage,
}
resp, err = b.HandleRequest(context.Background(), roleSecretIDReq)
resp, err := b.HandleRequest(context.Background(), roleSecretIDReq)
if err != nil || (resp != nil && resp.IsError()) {
t.Fatalf("err:%v resp:%#v", err, resp)
}