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

chore(tesla): removing warnings and clean up test cases #409

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

yordis
Copy link
Contributor

@yordis yordis commented Nov 6, 2024

Context

Doing some grunt work, removing the warning from the test environment and clean up other things around the test cases

..     warning: redefining module Tesla.Middleware.OpenTelemetryTest.TestClient (current version defined in memory)
     │
 227 │       defmodule TestClient do
     │       ~~~~~~~~~~~~~~~~~~~~~~~
     │
     └─ test/middleware/opentelemetry_tesla_middleware_test.exs:227: Tesla.Middleware.OpenTelemetryTest.TestClient (module)

.     warning: redefining module Tesla.Middleware.OpenTelemetryTest.TestClient (current version defined in memory)
     │
 227 │       defmodule TestClient do
     │       ~~~~~~~~~~~~~~~~~~~~~~~
     │
     └─ test/middleware/opentelemetry_tesla_middleware_test.exs:227: Tesla.Middleware.OpenTelemetryTest.TestClient (module)

.     warning: redefining module Tesla.Middleware.OpenTelemetryTest.TestClient (current version defined in memory)
     │
 227 │       defmodule TestClient do
     │       ~~~~~~~~~~~~~~~~~~~~~~~
     │
     └─ test/middleware/opentelemetry_tesla_middleware_test.exs:227: Tesla.Middleware.OpenTelemetryTest.TestClient (module)

.     warning: redefining module Tesla.Middleware.OpenTelemetryTest.TestClient (current version defined in memory)
     │
 227 │       defmodule TestClient do
     │       ~~~~~~~~~~~~~~~~~~~~~~~
     │
     └─ test/middleware/opentelemetry_tesla_middleware_test.exs:227: Tesla.Middleware.OpenTelemetryTest.TestClient (module)

.     warning: redefining module Tesla.Middleware.OpenTelemetryTest.TestClient (current version defined in memory)
     │
 227 │       defmodule TestClient do
     │       ~~~~~~~~~~~~~~~~~~~~~~~
     │
     └─ test/middleware/opentelemetry_tesla_middleware_test.exs:227: Tesla.Middleware.OpenTelemetryTest.TestClient (module)

.    warning: redefining module Tesla.Middleware.OpenTelemetryTest.TestClient (current version defined in memory)
    │
 98 │       defmodule TestClient do
    │       ~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ test/middleware/opentelemetry_tesla_middleware_test.exs:98: Tesla.Middleware.OpenTelemetryTest.TestClient (module)

@yordis
Copy link
Contributor Author

yordis commented Dec 6, 2024

@bryannaegele is it possible to review this one?

Copy link

@btkostner btkostner left a comment

Choose a reason for hiding this comment

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

Sane cleanup and much easier to read without all of the defmodules in tests

@bryannaegele bryannaegele merged commit 0f7a519 into open-telemetry:main Jan 3, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants