fix: adjust wait timeouts

chore: cleanup

[skip ci]
This commit is contained in:
Marcel S. Henselin 2026-03-13 18:47:15 +01:00
parent c0047cd5ec
commit 3682d40a05
3 changed files with 5 additions and 21 deletions

View file

@ -225,7 +225,7 @@ jobs:
export TF_ACC_SERVICE_ACCOUNT_FILE
make test
- name: Testing
- name: Testing with coverage
if: ${{ github.event_name == 'pull_request' }}
run: |
TF_ACC_SERVICE_ACCOUNT_FILE=~/.service_account.json

View file

@ -493,7 +493,10 @@ func (r *instanceResource) Update(
projectID,
region,
instanceID,
).WaitWithContext(ctx)
).
SetTimeout(30 * time.Minute).
SetSleepBeforeWait(10 * time.Second).
WaitWithContext(ctx)
if err != nil {
core.LogAndAddError(
ctx,

View file

@ -151,27 +151,8 @@ func TestAccInstance(t *testing.T) {
updNetACL := updBackupSched
updNetACL.ACLStrings = append(updNetACL.ACLStrings, "192.168.0.0/24")
/*
{
"flavorId": "1.2",
"network": {
"acl": [
"198.51.100.0/24"
]
},
"replicas": 1,
"retentionDays": 35,
"storage": {
"size": 10
},
"version": "string"
}
*/
testItemID := testutils.ResStr(pfx, "instance", exData.TfName)
compareValuesSame := statecheck.CompareValue(compare.ValuesSame())
resource.ParallelTest(
t, resource.TestCase{
PreCheck: func() {