mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2026-05-05 04:06:26 +02:00
fix(test): /etc/timezone is no longer reliable on Debian
Hence, I opted to check the link `/etc/localtime` instead. Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
parent
dbcea3783f
commit
04ef7eab93
@ -13,11 +13,11 @@ function setup_file() {
|
||||
function teardown_file() { _default_teardown ; }
|
||||
|
||||
@test "setting the time with TZ works correctly" {
|
||||
_run_in_container cat /etc/timezone
|
||||
_run_in_container realpath -eL /etc/localtime
|
||||
assert_success
|
||||
assert_output 'Asia/Jakarta'
|
||||
assert_output /usr/share/zoneinfo/Asia/Jakarta
|
||||
|
||||
_run_in_container date '+%Z'
|
||||
_run_in_container date +%Z
|
||||
assert_success
|
||||
assert_output 'WIB'
|
||||
assert_output WIB
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user