Storage: GuaranteedUpdate fix & other improvements (#85206)

make GuaranteedUpdate work when ignoring not found errors, increase poll frequency, fix Delete
This commit is contained in:
Dan Cech
2024-03-27 10:38:49 -04:00
committed by GitHub
parent 2ecc1bb646
commit ef26fe95dc
3 changed files with 47 additions and 10 deletions
@@ -58,7 +58,7 @@ func createServiceAccountAdminToken(t *testing.T, env *server.TestEnv) (string,
type testContext struct {
authToken string
client entity.EntityStoreServer
client entity.EntityStoreClient
user *user.SignedInUser
ctx context.Context
}
@@ -88,9 +88,11 @@ func createTestContext(t *testing.T) testContext {
store, err := sqlstash.ProvideSQLEntityServer(eDB)
require.NoError(t, err)
client := entity.NewEntityStoreClientLocal(store)
return testContext{
authToken: authToken,
client: store,
client: client,
user: serviceAccountUser,
ctx: appcontext.WithUser(context.Background(), serviceAccountUser),
}