Skip to content

Commit

Permalink
resolve #107 (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
findmyway committed Apr 23, 2024
1 parent e2a7069 commit 8e9ecc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ function get_pkg_version(m::Module)
if haskey(project_toml, "version")
VersionNumber(project_toml["version"])
else
VERSION # stdlibs do not have version field
VERSION
end
end
3 changes: 2 additions & 1 deletion src/api/test/utils.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@testset "utils" begin
@test get_pkg_version(Logging) == VERSION
# https://github.com/oolong-dev/OpenTelemetry.jl/issues/107
@test get_pkg_version(Logging) >= VERSION
withenv("OTEL_LOG_LEVEL" => "error") do
@test OTEL_LOG_LEVEL() == Logging.Error
end
Expand Down

0 comments on commit 8e9ecc2

Please sign in to comment.