Skip to content

Commit 1e1e6f3

Browse files
authored
fix: skip TestReinitializeAgent until we can adapt it for windows (#17968)
relates to coder/internal#642 I've reached a timebox trying to get a script for windows to work, so I'm skipping it for now.
1 parent a5234bf commit 1e1e6f3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

enterprise/coderd/workspaceagents_test.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"net/http"
88
"os"
99
"regexp"
10+
"runtime"
1011
"testing"
1112
"time"
1213

@@ -89,6 +90,12 @@ func TestReinitializeAgent(t *testing.T) {
8990
t.Skip("dbmem cannot currently claim a workspace")
9091
}
9192

93+
if runtime.GOOS == "windows" {
94+
t.Skip("test startup script is not supported on windows")
95+
}
96+
97+
startupScript := fmt.Sprintf("printenv >> %s; echo '---\n' >> %s", tempAgentLog.Name(), tempAgentLog.Name())
98+
9299
db, ps := dbtestutil.NewDB(t)
93100
// GIVEN a live enterprise API with the prebuilds feature enabled
94101
client, user := coderdenttest.New(t, &coderdenttest.Options{
@@ -155,7 +162,7 @@ func TestReinitializeAgent(t *testing.T) {
155162
Scripts: []*proto.Script{
156163
{
157164
RunOnStart: true,
158-
Script: fmt.Sprintf("printenv >> %s; echo '---\n' >> %s", tempAgentLog.Name(), tempAgentLog.Name()), // Make reinitialization take long enough to assert that it happened
165+
Script: startupScript,
159166
},
160167
},
161168
Auth: &proto.Agent_Token{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy