mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-20 12:22:16 +00:00
Add another testcase (#3035)
Actually wanted to add this to #3030 but @6543 was too fast…
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user