Skip to content

Commit db59693

Browse files
chore: add extra test case
Technically this doesn't really test anything new but it is good to have an explicit test for anyways.
1 parent a5278c9 commit db59693

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

agent/agentcontainers/api_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,6 +1765,17 @@ func TestAPI(t *testing.T) {
17651765
require.NotEqual(t, "custom-name", subAgent.Name)
17661766
},
17671767
},
1768+
{
1769+
name: "EmptyNameIsIgnored",
1770+
customization: []agentcontainers.CoderCustomization{
1771+
{
1772+
Name: "",
1773+
},
1774+
},
1775+
afterCreate: func(t *testing.T, subAgent agentcontainers.SubAgent) {
1776+
require.NotEmpty(t, subAgent.Name)
1777+
},
1778+
},
17681779
}
17691780

17701781
for _, tt := range tests {

0 commit comments

Comments
 (0)