8000 test(cli): Add debugging to figure out why TestServerYAMLConfig fails by mafredri · Pull Request #7158 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

test(cli): Add debugging to figure out why TestServerYAMLConfig fails #7158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
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
Next Next commit
test(cli): Add debugging to figure out why TestServerYAMLConfig fails
  • Loading branch information
mafredri committed Apr 17, 2023
commit 41fbba99365ef2780a55130a92378a3558bf9015
6 changes: 6 additions & 0 deletions cli/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1583,7 +1583,13 @@ func TestServerYAMLConfig(t *testing.T) {
return
}

wd1, _ := os.Getwd()
got, err := os.ReadFile(goldenPath)
wd2, _ := os.Getwd()
// Debugging to figure out why this test fails.
if err != nil {
t.Errorf("failed to read golden file: %v, wd1=%s, wd2=%s", err, wd1, wd2)
}
require.NoError(t, err)
got = normalizeGoldenFile(t, got)

Expand Down
0