mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-03 15:16:29 +00:00
Add another testcase (#3035)
Actually wanted to add this to #3030 but @6543 was too fast…
This commit is contained in:
parent
8c4480f281
commit
05f26bab00
1 changed files with 5 additions and 0 deletions
|
@ -23,4 +23,9 @@ func TestParse(t *testing.T) {
|
||||||
env, err = service.EnvironList(nil)
|
env, err = service.EnvironList(nil)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
assert.Len(t, env, 2)
|
assert.Len(t, env, 2)
|
||||||
|
|
||||||
|
service = Parse([]string{"ENV:value", "ENV2:value2", "ENV3_WITHOUT_VALUE"})
|
||||||
|
env, err = service.EnvironList(nil)
|
||||||
|
assert.NoError(t, err)
|
||||||
|
assert.Len(t, env, 2)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue