nginxinc / nginx-go-crossplane

A library for working with NGINX configs in Go
Apache License 2.0
46 stars 12 forks source link

Fixes error code on test run #78

Closed ornj closed 7 months ago

ornj commented 8 months ago

Proposed changes

TestMain is used for all tests, not just benchmarks as it looks like the file might expect. The error code was being ignored which results in an ok status on each test run even when there are failures.

This commit fixes TestMain to return the error code returned from Run(). I did not look at anything else going on in the file.

Checklist

Before creating a PR, run through this checklist and mark each as complete.