| 161 | } |
| 162 | |
| 163 | func EnvWaitForEqualTablesWithNames( |
| 164 | env WorkflowRun, |
| 165 | suite RowSource, |
| 166 | reason string, |
| 167 | srcTable string, |
| 168 | dstTable string, |
| 169 | cols string, |
| 170 | ) { |
| 171 | t := suite.T() |
| 172 | t.Helper() |
| 173 | |
| 174 | EnvWaitFor(t, env, 3*time.Minute, reason, func() bool { |
| 175 | t.Helper() |
| 176 | |
| 177 | sourceRows, err := suite.Source().GetRows(t.Context(), suite.Suffix(), srcTable, cols) |
| 178 | if err != nil { |
| 179 | t.Log(err) |
| 180 | return false |
| 181 | } |
| 182 | |
| 183 | rows, err := suite.GetRows(dstTable, cols) |
| 184 | if err != nil { |
| 185 | t.Log(err) |
| 186 | return false |
| 187 | } |
| 188 | |
| 189 | return e2eshared.CheckEqualRecordBatches(t, sourceRows, rows) |
| 190 | }) |
| 191 | } |
| 192 | |
| 193 | func EnvWaitForEqualTablesWithNames_Only( |
| 194 | env WorkflowRun, |