From e32fed96f12e6bc052130cd895ed660de416f7e4 Mon Sep 17 00:00:00 2001 From: fujiwara Date: Sat, 5 Aug 2023 01:07:56 +0900 Subject: [PATCH] fix tests --- diff_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/diff_test.go b/diff_test.go index 93e21f15..9f8c9d12 100644 --- a/diff_test.go +++ b/diff_test.go @@ -137,8 +137,8 @@ var testTaskDefinition2 = &ecspresso.TaskDefinitionInput{ } func TestTaskDefinitionDiffer(t *testing.T) { - ecspresso.SortTaskDefinitionForDiff(testTaskDefinition1) - ecspresso.SortTaskDefinitionForDiff(testTaskDefinition2) + ecspresso.SortTaskDefinition(testTaskDefinition1) + ecspresso.SortTaskDefinition(testTaskDefinition2) td1, _ := ecspresso.MarshalJSONForAPI(testTaskDefinition1) td2, _ := ecspresso.MarshalJSONForAPI(testTaskDefinition2) if diff := cmp.Diff(td1, td2); diff != "" { @@ -228,7 +228,7 @@ var testServiceDefinitionHasDesiredCount = &ecspresso.Service{ } func TestDiffServices(t *testing.T) { - t.Run("when local.DesiredCount is nil, ignore diff of DesiredCount", func (t *testing.T) { + t.Run("when local.DesiredCount is nil, ignore diff of DesiredCount", func(t *testing.T) { diff, err := ecspresso.DiffServices( testServiceDefinitionNoDesiredCount, testServiceDefinitionHasDesiredCount,