mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
test(agent): fix service banner trim test flake (#10384)
This commit is contained in:
+7
-2
@@ -350,8 +350,13 @@ func TestAgent_Session_TTY_MOTD(t *testing.T) {
|
||||
unexpected: []string{},
|
||||
},
|
||||
{
|
||||
name: "Trim",
|
||||
manifest: agentsdk.Manifest{},
|
||||
name: "Trim",
|
||||
// Enable motd since it will be printed after the banner,
|
||||
// this ensures that we can test for an exact mount of
|
||||
// newlines.
|
||||
manifest: agentsdk.Manifest{
|
||||
MOTDFile: name,
|
||||
},
|
||||
banner: codersdk.ServiceBannerConfig{
|
||||
Enabled: true,
|
||||
Message: "\n\n\n\n\n\nbanner\n\n\n\n\n\n",
|
||||
|
||||
Reference in New Issue
Block a user