Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tester/runner: Fix panic'ing case in utility function. #5497

Merged
merged 1 commit into from Dec 21, 2022

Commits on Dec 21, 2022

  1. tester/runner: Fix panic'ing case in utility function.

    This commit fixes a panic from a utility function in the `opa test`
    codepath. After the ref-heads change in open-policy-agent#4660, this particular
    function could be fed a ref that it didn't know how to work with,
    such as the innocuous line `a[0] := 1`, and it would then panic.
    
    This was fixed by returning a dummy value instead of panic'ing.
    
    Fixes: open-policy-agent#5496
    
    Signed-off-by: Philip Conrad <philipaconrad@gmail.com>
    philipaconrad committed Dec 21, 2022
    Copy the full SHA
    a6c37ad View commit details
    Browse the repository at this point in the history