Closed jvshahid closed 7 years ago
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/149184835
The labels on this github issue will be updated when the story is started.
Thanks @jvshahid, scheduling this.
@jvshahid I think we just need to change the update-quota
line to
Eventually(cf.Cf("update-quota", quota.Entity.Name, "-m", memoryLimit), DEFAULT_TIMEOUT).Should(gexec.Exit(0))
so that we actually wait for the command to exit before the AsUser
logs us out otherwise the gexec.Session
returned by cf.Cf()
is just left to run as it pleases without anything waiting for it to finish
@sunjayBhatia maybe we should follow the pattern here and use cf.Cf(...).Wait(<timeout>)
instead?
@jvshahid We made this change on master.
Looks like we don't wait for the the
update-quota
command to finish here which sometimes will causecf logout
to run in parallel and cause theupdate-quota
command to fail with error:This has caused test failures in this build