Skip to content

Commit

Permalink
prepare exppected value in one place
Browse files Browse the repository at this point in the history
Signed-off-by: Mustafa Abdelrahman <[email protected]>
  • Loading branch information
MustafaSaber committed Jun 16, 2023
1 parent 8708985 commit f210e1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -478,7 +478,7 @@ func TestResourceConversion(tt *testing.T) {

assert.Equal(
t,
strings.TrimSuffix(expected, "\n"),
expected,
clientCF.GetLastGeneratedTemplate(),
)
})
Expand Down

0 comments on commit f210e1a

Please sign in to comment.