From 1cd297f12ab1d43bc46a6069d0570f4312364971 Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Thu, 14 Nov 2024 22:31:26 -0800 Subject: [PATCH] Remove more usages. --- lib/destination/ddl/ddl_alter_delete_test.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/destination/ddl/ddl_alter_delete_test.go b/lib/destination/ddl/ddl_alter_delete_test.go index 2cedc366a..a2d80cf0d 100644 --- a/lib/destination/ddl/ddl_alter_delete_test.go +++ b/lib/destination/ddl/ddl_alter_delete_test.go @@ -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