Skip to content

Commit 2791036

Browse files
committed
fix(test): use http.NoBody and fix import formatting for linter compliance
Signed-off-by: Sneha Das <154408198+Snehadas2005@users.noreply.github.com>
1 parent 0b8a46f commit 2791036

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

workspaces/backend/api/workspace_details_handler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ var _ = Describe("Workspace Details Handler", func() {
6363
path := strings.Replace(constants.WorkspacePodTemplateDetailsPath, ":"+constants.NamespacePathParam, invalidNamespace, 1)
6464
path = strings.Replace(path, ":"+constants.ResourceNamePathParam, testWorkspace, 1)
6565

66-
req, err := http.NewRequest(http.MethodGet, path, http.NoBody) // <-- Fixed: nil changed to http.NoBody
66+
req, err := http.NewRequest(http.MethodGet, path, http.NoBody)
6767
Expect(err).NotTo(HaveOccurred())
6868
req.Header.Set(userIdHeader, adminUser)
6969

0 commit comments

Comments
 (0)