Commit 3cdedb9
test: fix race condition in config daemon pod restart test
getConfigDaemonPod had a hard Gomega Expect assertion on pod count,
causing it to panic when called inside Eventually immediately after
pod deletion — before the DaemonSet replacement was created.
Change getConfigDaemonPod to return (*corev1.Pod, error) so callers
inside Eventually can retry gracefully on transient zero-pod states.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent d0f8550 commit 3cdedb9
2 files changed
Lines changed: 13 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| |||
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
194 | | - | |
195 | | - | |
196 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1964 | 1964 | | |
1965 | 1965 | | |
1966 | 1966 | | |
1967 | | - | |
| 1967 | + | |
1968 | 1968 | | |
1969 | 1969 | | |
1970 | 1970 | | |
1971 | 1971 | | |
1972 | 1972 | | |
1973 | 1973 | | |
1974 | 1974 | | |
1975 | | - | |
1976 | | - | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
1977 | 1979 | | |
1978 | 1980 | | |
1979 | 1981 | | |
1980 | | - | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
1981 | 1985 | | |
1982 | 1986 | | |
1983 | 1987 | | |
| |||
0 commit comments