Skip to content

Commit

Permalink
Fix unittest failure for release versions (#14067)
Browse files Browse the repository at this point in the history
  • Loading branch information
grorp committed Dec 8, 2023
1 parent 2ec3325 commit 689aaf5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion games/devtest/mods/unittests/get_version.lua
Expand Up @@ -7,6 +7,10 @@ unittests.register("test_get_version", function()
assert(type(version.proto_min) == "number")
assert(type(version.proto_max) == "number")
assert(version.proto_max >= version.proto_min)
assert(type(version.hash) == "string")
assert(type(version.is_dev) == "boolean")
if version.is_dev then
assert(type(version.hash) == "string")
else
assert(version.hash == nil)
end
end)

0 comments on commit 689aaf5

Please sign in to comment.