Skip to content

Commit 4433d6a

Browse files
committed
fix: skip TestReinitializeAgent until we can adapt the script for windows
1 parent f93e987 commit 4433d6a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

enterprise/coderd/workspaceagents_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,12 @@ func TestReinitializeAgent(t *testing.T) {
9090
t.Skip("dbmem cannot currently claim a workspace")
9191
}
9292

93-
var startupScript string
9493
if runtime.GOOS == "windows" {
95-
startupScript = fmt.Sprintf("cmd.exe /c set >> \"%s\" && echo --- >> \"%s\"", tempAgentLog.Name(), tempAgentLog.Name())
96-
} else {
97-
startupScript = fmt.Sprintf("printenv >> %s; echo '---\n' >> %s", tempAgentLog.Name(), tempAgentLog.Name())
94+
t.Skip("test startup script is not supported on windows")
9895
}
9996

97+
startupScript := fmt.Sprintf("printenv >> %s; echo '---\n' >> %s", tempAgentLog.Name(), tempAgentLog.Name())
98+
10099
db, ps := dbtestutil.NewDB(t)
101100
// GIVEN a live enterprise API with the prebuilds feature enabled
102101
client, user := coderdenttest.New(t, &coderdenttest.Options{

0 commit comments

Comments
 (0)