Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

Commit

Permalink
Add debug info to failing task on win2012r2
Browse files Browse the repository at this point in the history
  • Loading branch information
petemoore committed Feb 27, 2018
1 parent 3b3deee commit 68982b6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
12 changes: 12 additions & 0 deletions helper_all-unix-style_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@ func incrementCounterInCache() [][]string {
}
}

func goEnv() [][]string {
return [][]string{
{
"go",
"env",
},
{
"env",
},
}
}

func sleep(seconds uint) [][]string {
return [][]string{
{
Expand Down
7 changes: 7 additions & 0 deletions helper_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ func incrementCounterInCache() []string {
return []string{command}
}

func goEnv() []string {
return []string{
"go env",
"set",
}
}

func sleep(seconds uint) []string {
return []string{
"ping 127.0.0.1 -n " + strconv.Itoa(int(seconds+1)) + " > nul",
Expand Down
5 changes: 4 additions & 1 deletion taskcluster_proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ func TestTaskclusterProxy(t *testing.T) {
defer teardown(t)
payload := GenericWorkerPayload{
Command: append(
sleep(17),
append(
goEnv(),
sleep(17)...,
),
goRun(
"curlget.go",
fmt.Sprintf("http://localhost:%v/queue/v1/task/KTBKfEgxR5GdfIIREQIvFQ/runs/0/artifacts/SampleArtifacts/_/X.txt", config.TaskclusterProxyPort),
Expand Down

0 comments on commit 68982b6

Please sign in to comment.