From 05f26bab00b20873c048fdf51efe9aac55dadfba Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Wed, 27 Dec 2023 10:51:39 +0100 Subject: [PATCH] Add another testcase (#3035) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Actually wanted to add this to #3030 but @6543 was too fast… --- server/plugins/environments/parse_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/plugins/environments/parse_test.go b/server/plugins/environments/parse_test.go index 869fa7e06..9e1feacc4 100644 --- a/server/plugins/environments/parse_test.go +++ b/server/plugins/environments/parse_test.go @@ -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) }