# SPDX-FileCopyrightText: 2024 Redict Contributors
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
#
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-License-Identifier: LGPL-3.0-only

source "../tests/includes/init-tests.tcl"

test "Sentinel debug test with arguments and without argument" {
   set current_info_period [lindex [S 0 SENTINEL DEBUG] 1]
   S 0 SENTINEL DEBUG info-period 8888
   assert_equal {8888} [lindex [S 0 SENTINEL DEBUG] 1] 
   S 0 SENTINEL DEBUG info-period $current_info_period
   assert_equal $current_info_period [lindex [S 0 SENTINEL DEBUG] 1]
}
