diff --git a/worker_test.go b/worker_test.go index 227067f5..c53502ba 100644 --- a/worker_test.go +++ b/worker_test.go @@ -412,7 +412,7 @@ func TestResourceConversion(tt *testing.T) { tt.Run(scenario.name, func(t *testing.T) { b, err := os.ReadFile("./testdata/" + scenario.name + "/expected.cf") require.NoError(t, err) - expected := string(b) + expected := strings.TrimSuffix(string(b), "\n") clientEC2 := &fake.EC2Client{Outputs: scenario.responsesEC2} clientASG := &fake.ASGClient{Outputs: scenario.responsesASG} @@ -478,7 +478,7 @@ func TestResourceConversion(tt *testing.T) { assert.Equal( t, - strings.TrimSuffix(expected, "\n"), + expected, clientCF.GetLastGeneratedTemplate(), ) })