mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-04 18:21:06 +02: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
@ -23,4 +23,9 @@ func TestParse(t *testing.T) {
|
||||
env, err = service.EnvironList(nil)
|
||||
assert.NoError(t, err)
|
||||
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…
x
Reference in New Issue
Block a user