Skip to content

Commit

Permalink
fixing non-existing table test, errors now
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal committed Sep 28, 2023
1 parent f47ff9a commit 0ddfc5c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions flow/connectors/postgres/postgres_cdc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,11 @@ func (suite *PostgresCDCTestSuite) TestErrorForTableNotExist() {
TableNameSchemaMapping: tableNameSchemaMapping,
RelationMessageMapping: relationMessageMapping,
})
suite.Equal(0, len(recordsWithSchemaDelta.RecordBatch.Records))
suite.Nil(recordsWithSchemaDelta.TableSchemaDelta)
suite.Nil(err)
suite.Nil(recordsWithSchemaDelta)
suite.Errorf(
err,
"error while closing statement batch: ERROR: relation \"%s\" does not exist (SQLSTATE 42P01)",
nonExistentFlowSrcTableName)

err = suite.connector.PullFlowCleanup(nonExistentFlowName)
suite.failTestError(err)
Expand Down

0 comments on commit 0ddfc5c

Please sign in to comment.