From 3c9f3efed9a6b4b03cdc6a736fce1a1075f644e5 Mon Sep 17 00:00:00 2001 From: Thomas Poignant Date: Mon, 7 Oct 2024 15:48:32 +0200 Subject: [PATCH] Use converter on the dto directly --- model/dto/converter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/dto/converter_test.go b/model/dto/converter_test.go index 72c724587d8..7bd44013ffa 100644 --- a/model/dto/converter_test.go +++ b/model/dto/converter_test.go @@ -137,7 +137,7 @@ func TestConvertV1DtoToInternalFlag(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - result := dto.ConvertV1DtoToInternalFlag(tt.input) + result := tt.input.Convert(nil, "random-flag-name") assert.Equal(t, tt.expected, result) }) }