I have a custom provider, and I’m writing acceptance tests for it.
Each test always passes when I run it individually.
When i’m trying to run all of the tests, they are flakey and randomly fail.
For example, on run 1 test x can pass, and on run 2 test x can fail.
Most of the time it fails on a step where I try to update some attribute, and then check with TestCheckResourceAttr
that it was updated. But when i’m running ONLY that test, it works.
Tried looking up this issue but couldn’t find anything.
Any advice?
Is there a way I can set some sort of “sleep” between test steps or the tests themselves?