Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
hello windows
  • Loading branch information
mafredri committed Oct 5, 2023
commit 345e25aa2ec8bb20a1bc1da322cf08bd53ff6f30
3 changes: 2 additions & 1 deletion scaletest/harness/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import (
"strings"
"time"

"github.com/coder/coder/v2/coderd/httpapi"
"golang.org/x/exp/maps"

"github.com/coder/coder/v2/coderd/httpapi"
)

// Results is the full compiled results for a set of test runs.
Expand Down
5 changes: 3 additions & 2 deletions scaletest/harness/results_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Test results:
"started_at": "2023-10-05T12:03:56.395813665Z",
"duration": "1s",
"duration_ms": 1000,
"error": "test-0/0 error:\n github.com/coder/coder/v2/scaletest/harness_test.Test_Results\n [working_directory]results_test.go:43"
"error": "test-0/0 error:\n github.com/coder/coder/v2/scaletest/harness_test.Test_Results\n [working_directory]/results_test.go:43"
},
"test-0/1": {
"full_id": "test-0/1",
Expand All @@ -136,7 +136,8 @@ Test results:
`
wd, err := os.Getwd()
require.NoError(t, err)
wantJSON = strings.Replace(wantJSON, "[working_directory]", wd+string(filepath.Separator), 1)
wd = filepath.ToSlash(wd) // Hello there Windows, my friend...
wantJSON = strings.Replace(wantJSON, "[working_directory]", wd, 1)

out := bytes.NewBuffer(nil)
results.PrintText(out)
Expand Down