Commit fde34572 authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Make test more robust.

parent 86d57504
...@@ -213,12 +213,12 @@ describe("htop test suite", function() ...@@ -213,12 +213,12 @@ describe("htop test suite", function()
send("/") send("/")
send("busted") send("busted")
local attr = rt:cellAttr(rt:rows() - 1, 30) local attr = rt:cellAttr(rt:rows() - 1, 30)
send("\n") delay(0.3)
delay(0.4)
local line = find_selected_y() local line = find_selected_y()
local pid = (" "..tostring(unistd.getpid())):sub(-5) local pid = (" "..tostring(unistd.getpid())):sub(-5)
assert.equal(attr, attrs.black_on_cyan) assert.equal(attr, attrs.black_on_cyan)
local ourpid = check_string_at(1, line, pid) local ourpid = check_string_at(1, line, pid)
send("\n")
send(curses.KEY_HOME) send(curses.KEY_HOME)
assert.equal(check(ourpid)) assert.equal(check(ourpid))
end) end)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment