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

Overflow #103

Open
AIMMOTH opened this issue Jan 10, 2024 · 1 comment
Open

Overflow #103

AIMMOTH opened this issue Jan 10, 2024 · 1 comment

Comments

@AIMMOTH
Copy link

AIMMOTH commented Jan 10, 2024

KotlinFixture stacktrace.txt

I guess to a self-referencing overflow Fixture is stuck. But the stacktrace is interesting. It tries to connect to a web service.

ERROR StatusConsoleListener Could not find host f93da271-6398-48a8-bf46-567899adf231

Could you explain?

@mattmook
Copy link
Member

it would be interesting to see the logs if you enable the SysOutLoggingStrategy as it would show you what data types the project is generating:

val fixture = kotlinFixture {
    loggingStrategy(SysOutLoggingStrategy)
}

Ultimately, for whatever reason it's trying to create an instance of DatagramOutputStream which must make an internet connection on construction. The library randomises what classes its chosen so I can only imagine its trying to resolve OutputStream and stumbled upon DatagramOutputStream by chance.

Depending on what types it is generating basically you might need to give kotlinFixture more hints with how to resolve (while avoiding DatagramOutputStream).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants