(t *testing.T, path, expected string)
| 181 | } |
| 182 | |
| 183 | func waitForFileText(t *testing.T, path, expected string) { |
| 184 | t.Helper() |
| 185 | deadline := time.Now().Add(30 * time.Second) |
| 186 | for time.Now().Before(deadline) { |
| 187 | if data, err := os.ReadFile(path); err == nil && strings.Contains(string(data), expected) { |
| 188 | return |
| 189 | } |
| 190 | time.Sleep(100 * time.Millisecond) |
| 191 | } |
| 192 | t.Fatalf("Timed out waiting for shell command to write %q to %q", expected, path) |
| 193 | } |
| 194 | |
| 195 | func waitForFleetCompletion(t *testing.T, session *copilot.Session, contentNeedle string) []copilot.SessionEvent { |
| 196 | t.Helper() |
no test coverage detected
searching dependent graphs…