fix tests

Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
Casey Lee
2020-02-13 11:47:38 -08:00
parent e40ab0145f
commit 09773f7c5c
7 changed files with 160 additions and 30 deletions

View File

@@ -34,10 +34,10 @@ func TestAddpath(t *testing.T) {
handler := rc.commandHandler(ctx)
handler("::add-path::/zoo\n")
assert.Equal("/zoo:", rc.Env["PATH"])
assert.Equal("/zoo", rc.ExtraPath[0])
handler("::add-path::/booo\n")
assert.Equal("/booo:/zoo:", rc.Env["PATH"])
handler("::add-path::/boo\n")
assert.Equal("/boo", rc.ExtraPath[1])
}
func TestStopCommands(t *testing.T) {