Skip to content

Commit

Permalink
fix(tests/falco): solve issues with description tests for static builds
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Dellaluce <[email protected]>
  • Loading branch information
jasondellaluce authored and poiana committed Dec 1, 2023
1 parent 5df15a1 commit 5248e6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/falco/commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func TestFalco_Print_Rules(t *testing.T) {

t.Run("json-valid-rules", func(t *testing.T) {
t.Parallel()
checkNotStaticExecutable(t)
res := falco.Test(
runner,
falco.WithArgs("-L"),
Expand All @@ -220,6 +221,7 @@ func TestFalco_Print_Rules(t *testing.T) {
falco.WithRules(rules.RulesDir000SingleRule, rules.RulesListWithPluginJSON),
)

assert.NoError(t, res.Err())
infos := res.RulesetDescription()
assert.NotNil(t, infos)

Expand Down

0 comments on commit 5248e6d

Please sign in to comment.