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

unnest endpoint_opts in tests to fix some ci failures #67

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

ruslandoga
Copy link
Contributor

This PR should fix at least some of the failing tests. Comments inline.

@@ -30,12 +30,10 @@ for {input, index} <- Enum.with_index(inputs),
setup_all do
start_supervised!({
TestEndpoint,
endpoint_opts: [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This caused opts to be

[
  endpoint: SiteEncrypt.Phoenix.Endpoint.Cowboy2Adapter.NativeTest.TestEndpoint,
  endpoint_opts: [
    endpoint_opts: [
      adapter: Phoenix.Endpoint.Cowboy2Adapter,
      http: [port: 40000],
      https: [port: 40001],
      url: [scheme: "https", host: "localhost", port: 40001]
    ]
  ]
]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure though if it's a test issue or a configuration issue.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was introduced in a680884. This only affected tests though.

@ruslandoga
Copy link
Contributor Author

ruslandoga commented Jun 19, 2024

The dialyzer error seems to be a bug in Elixir 1.17.0, fixed in 1.17.1 already.

@sasa1977 sasa1977 merged commit 735105d into sasa1977:master Jun 19, 2024
1 check passed
@sasa1977
Copy link
Owner

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants