aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/unit/os/env_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/os/env_spec.lua b/test/unit/os/env_spec.lua
index cefd0315b7..c54d5a9b77 100644
--- a/test/unit/os/env_spec.lua
+++ b/test/unit/os/env_spec.lua
@@ -229,10 +229,10 @@ describe('env.c', function()
local src = to_cstr("~"..curuser.."/Vcs/django-rest-framework/rest_framework/renderers.py")
local dst = cstr(256, "~"..curuser)
- cimp.expand_env_esc(src, dst, 1024, false, false, NULL)
+ cimp.expand_env_esc(src, dst, 256, false, false, NULL)
local len = string.len(ffi.string(dst))
assert.True(len > 56)
- assert.True(len < 99)
+ assert.True(len < 256)
end)
itp('respects `dstlen` without expansion', function()