MCPcopy
hub / github.com/PeerDB-io/peerdb / EnvWaitForEqualTablesWithNames

Function EnvWaitForEqualTablesWithNames

flow/e2e/test_utils.go:163–191  ·  view source on GitHub ↗
(
	env WorkflowRun,
	suite RowSource,
	reason string,
	srcTable string,
	dstTable string,
	cols string,
)

Source from the content-addressed store, hash-verified

161}
162
163func 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
193func EnvWaitForEqualTablesWithNames_Only(
194 env WorkflowRun,

Calls 6

EnvWaitForFunction · 0.85
LogMethod · 0.80
TMethod · 0.65
GetRowsMethod · 0.65
SourceMethod · 0.65
SuffixMethod · 0.65