Skip to content

Commit

Permalink
Remove more usages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Nov 15, 2024
1 parent 0d3e903 commit 1cd297f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lib/destination/ddl/ddl_alter_delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,13 @@ func (d *DDLTestSuite) TestAlterDelete_Complete() {
}

// Everything has been deleted.
assert.Equal(d.T(), 0, len(snowflakeTc.Columns().GetColumns()), snowflakeTc.Columns().GetColumns())
assert.Equal(d.T(), 0, len(bqTc.Columns().GetColumns()), bqTc.Columns().GetColumns())
assert.Equal(d.T(), 0, len(redshiftTc.Columns().GetColumns()), redshiftTc.Columns().GetColumns())

assert.Equal(d.T(), 0, len(snowflakeTc.ReadOnlyColumnsToDelete()), snowflakeTc.ReadOnlyColumnsToDelete())
assert.Equal(d.T(), 0, len(bqTc.ReadOnlyColumnsToDelete()), bqTc.ReadOnlyColumnsToDelete())
assert.Equal(d.T(), 0, len(redshiftTc.ReadOnlyColumnsToDelete()), redshiftTc.ReadOnlyColumnsToDelete())
assert.Len(d.T(), snowflakeTc.Columns().GetColumns(), 0)
assert.Len(d.T(), bqTc.Columns().GetColumns(), 0)
assert.Len(d.T(), redshiftTc.Columns().GetColumns(), 0)

assert.Len(d.T(), snowflakeTc.ReadOnlyColumnsToDelete(), 0)
assert.Len(d.T(), bqTc.ReadOnlyColumnsToDelete(), 0)
assert.Len(d.T(), redshiftTc.ReadOnlyColumnsToDelete(), 0)
allColsMap := make(map[string]bool, len(allCols))
for _, allCol := range allCols {
allColsMap[allCol] = true
Expand Down

0 comments on commit 1cd297f

Please sign in to comment.