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

Invalid Memory Address or Nil Pointer Dereference #101

Open
Manjish opened this issue Feb 27, 2024 · 0 comments
Open

Invalid Memory Address or Nil Pointer Dereference #101

Manjish opened this issue Feb 27, 2024 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@Manjish
Copy link
Contributor

Manjish commented Feb 27, 2024

When running test using ginkgo, we get the following error:
Screenshot 2024-02-27 at 11 13 21

On looking further, the issue was due to the **zapLogger**. In logger.go (pkg->framework->logger.go), the GetGinLogger function uses zapLogger and when running the test, the zapLogger might have not been initialized properly which is giving the error.
As a workaround, the we can use l.Desugar() instead of the zapLogger.

I tried creating a NewLogger constructor and injecting it using fx but still the issue persists.

If there is any other solution or workaround to this please do mention 🙇🙏

@Manjish Manjish added the help wanted Extra attention is needed label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants