From bde3ea6ff7dc30cee6edb4e6657cb1b64090ebd7 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bonicoli Date: Wed, 13 Apr 2022 03:44:02 +0200 Subject: [PATCH] test: don't hardcode the mapping of the column --- integrations/engine_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/engine_test.go b/integrations/engine_test.go index c49d3f95..997c8962 100644 --- a/integrations/engine_test.go +++ b/integrations/engine_test.go @@ -276,10 +276,10 @@ func TestGetColumnsComment(t *testing.T) { var hasComment, noComment string for _, table := range tables { if table.Name == tableName { - col := table.GetColumn("has_comment") + col := table.GetColumn(testEngine.GetColumnMapper().Obj2Table("HasComment")) assert.NotNil(t, col) hasComment = col.Comment - col2 := table.GetColumn("no_comment") + col2 := table.GetColumn(testEngine.GetColumnMapper().Obj2Table("NoComment")) assert.NotNil(t, col2) noComment = col2.Comment break