Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1e1e6f3

Browse files
authored
fix: skip TestReinitializeAgent until we can adapt it for windows (#17968)
relates tocoder/internal#642I've reached a timebox trying to get a script for windows to work, soI'm skipping it for now.
1 parenta5234bf commit1e1e6f3

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+
ifruntime.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)

[8]ページ先頭

©2009-2025 Movatter.jp