Skip to content

Invalid Memory Address or Nil Pointer DereferenceΒ #101

@Manjish

Description

@Manjish

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 πŸ™‡πŸ™

Metadata

Metadata

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions