Note: This is the same logic as in ../../utils_test.go Copy+pasted to avoid dependency loops and exporting this test-helper.
(cur Stack, stacks []Stack)
| 552 | // Note: This is the same logic as in ../../utils_test.go |
| 553 | // Copy+pasted to avoid dependency loops and exporting this test-helper. |
| 554 | func isBackgroundRunning(cur Stack, stacks []Stack) bool { |
| 555 | for _, s := range stacks { |
| 556 | if cur.ID() == s.ID() { |
| 557 | continue |
| 558 | } |
| 559 | |
| 560 | if strings.Contains(s.State(), "run") { |
| 561 | return true |
| 562 | } |
| 563 | } |
| 564 | |
| 565 | return false |
| 566 | } |