We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7243b3 commit 8f1b4fbCopy full SHA for 8f1b4fb
agent/agent_test.go
@@ -350,8 +350,13 @@ func TestAgent_Session_TTY_MOTD(t *testing.T) {
350
unexpected: []string{},
351
},
352
{
353
- name: "Trim",
354
- manifest: agentsdk.Manifest{},
+ name: "Trim",
+ // Enable motd since it will be printed after the banner,
355
+ // this ensures that we can test for an exact mount of
356
+ // newlines.
357
+ manifest: agentsdk.Manifest{
358
+ MOTDFile: name,
359
+ },
360
banner: codersdk.ServiceBannerConfig{
361
Enabled: true,
362
Message: "\n\n\n\n\n\nbanner\n\n\n\n\n\n",
0 commit comments