Skip to content

Commit 8e9ecc2

Browse files
authored
resolve #107 (#108)
1 parent e2a7069 commit 8e9ecc2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/api/src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ function get_pkg_version(m::Module)
3131
if haskey(project_toml, "version")
3232
VersionNumber(project_toml["version"])
3333
else
34-
VERSION # stdlibs do not have version field
34+
VERSION
3535
end
3636
end

src/api/test/utils.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@testset "utils" begin
2-
@test get_pkg_version(Logging) == VERSION
2+
# https://github.com/oolong-dev/OpenTelemetry.jl/issues/107
3+
@test get_pkg_version(Logging) >= VERSION
34
withenv("OTEL_LOG_LEVEL" => "error") do
45
@test OTEL_LOG_LEVEL() == Logging.Error
56
end

0 commit comments

Comments
 (0)