summaryrefslogtreecommitdiffstats
path: root/tests/cram/lua/test_cases/changes_doesnt_leak.lua
blob: 68f0ed05bc2a7abc5fe16c57681837afe09a5112 (plain)
1
2
3
4
5
6
7
8
9
10
11
local A = assert
local c = uci.cursor(os.getenv("CONFIG_DIR"))

A(c:set("network", "lan", "dns", {
	"ns1.king.banik.cz",
	"ns2.openwrt.org",
}))

local changes = c:changes()
A(changes.network.lan.dns[1] == "ns1.king.banik.cz")
A(changes.network.lan.dns[2] == "ns2.openwrt.org")