10000 chore: Use dbgen in unit test by Emyrk · Pull Request #6111 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

chore: Use dbgen in unit test #6111

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

Merged
merged 3 commits into from
Feb 8, 2023
Merged
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
fixup! Use dbgen in all unit tests vs insert methods
  • Loading branch information
johnstcn committed Feb 8, 2023
commit 7a2327fea185ec6e865b1193def59e94a8a31628
3 changes: 1 addition & 2 deletions coderd/httpmw/templateversionparam_test.go
7C8C
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package httpmw_test

import (
"context"
"fmt"
"net/http"
"net/http/httptest"
"testing"
Expand Down Expand Up @@ -37,7 +36,7 @@ func TestTemplateVersionParam(t *testing.T) {
})

r := httptest.NewRequest("GET", "/", nil)
r.Header.Set(codersdk.SessionTokenHeader, fmt.Sprintf(token))
r.Header.Set(codersdk.SessionTokenHeader, token)

ctx := chi.NewRouteContext()
ctx.URLParams.Add("organization", organization.Name)
Expand Down
0