(appName string, processIndex int, instanceIndex int, shouldRestartFirst bool, expectedDisk string)
| 372 | } |
| 373 | |
| 374 | func WaitForAppDiskToTakeEffect(appName string, processIndex int, instanceIndex int, shouldRestartFirst bool, expectedDisk string) { |
| 375 | if shouldRestartFirst { |
| 376 | session := CF("restart", appName) |
| 377 | Eventually(session).Should(Exit(0)) |
| 378 | } |
| 379 | |
| 380 | Eventually(func() string { |
| 381 | session := CF("app", appName) |
| 382 | Eventually(session).Should(Exit(0)) |
| 383 | appTable := ParseV3AppProcessTable(session.Out.Contents()) |
| 384 | return appTable.Processes[processIndex].Instances[instanceIndex].Disk |
| 385 | }).Should(MatchRegexp(fmt.Sprintf(`\d+(\.\d+)?[KMG]? of %s`, expectedDisk))) |
| 386 | } |
| 387 | |
| 388 | func WaitForLogRateLimitToTakeEffect(appName string, processIndex int, instanceIndex int, shouldRestartFirst bool, expectedLogRateLimit string) { |
| 389 | if shouldRestartFirst { |
no test coverage detected