Skip to content

Commit

Permalink
test: fix unstable test
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Jul 27, 2022
1 parent 0a30706 commit a02bcef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/builders/golang/build_test.go
Expand Up @@ -1211,10 +1211,8 @@ func TestOverrides(t *testing.T) {
},
)
require.NoError(t, err)
require.Equal(t, dets, config.BuildDetails{
Ldflags: []string{"overridden"},
Env: []string{"BAR=foo", "FOO=overridden"},
})
require.ElementsMatch(t, dets.Ldflags, []string{"overridden"})
require.ElementsMatch(t, dets.Env, []string{"BAR=foo", "FOO=overridden"})
})

t.Run("single sided", func(t *testing.T) {
Expand Down

0 comments on commit a02bcef

Please sign in to comment.