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 all commits
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
7 changes: 7 additions & 0 deletions cli/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1583,7 +1583,14 @@ 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.
// https://github.com/coder/coder/pull/7158
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