Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed Aug 4, 2023
1 parent 50d328d commit e32fed9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e32fed9

Please sign in to comment.