mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
Make test more robust.
This commit is contained in:
parent
86d5750451
commit
fde3457235
@ -213,12 +213,12 @@ describe("htop test suite", function()
|
||||
send("/")
|
||||
send("busted")
|
||||
local attr = rt:cellAttr(rt:rows() - 1, 30)
|
||||
send("\n")
|
||||
delay(0.4)
|
||||
delay(0.3)
|
||||
local line = find_selected_y()
|
||||
local pid = (" "..tostring(unistd.getpid())):sub(-5)
|
||||
assert.equal(attr, attrs.black_on_cyan)
|
||||
local ourpid = check_string_at(1, line, pid)
|
||||
send("\n")
|
||||
send(curses.KEY_HOME)
|
||||
assert.equal(check(ourpid))
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user