fix tests

Signed-off-by: Casey Lee <[email protected]>
This commit is contained in:
Casey Lee committed 2020-02-20 21:05:57 -05:00
1 parent e40ab0145f
commit 09773f7c5c
7 files changed
+160 -30

No files matched your search

+3 -3
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) {