mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-30 19:22:09 +00:00
fix tests
Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
parent
e67e06809c
commit
7183c74cd0
6 changed files with 159 additions and 29 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue