Skip to content

Commit

Permalink
explicitly verify no policies before ConvertQueryPacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
preslavgerchev committed Nov 6, 2023
1 parent 4d5f612 commit f6073fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions policy/bundle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func TestBundleCompile_ConvertQueryPacks(t *testing.T) {

bundle := parseBundle(t, bundleStr)
require.NotNil(t, bundle)
require.Equal(t, 0, len(bundle.Policies))

bundle.ConvertQuerypacks()

Expand Down

0 comments on commit f6073fa

Please sign in to comment.