From 51ec708fa17c166259f589c5eb5c67c9b382a4c0 Mon Sep 17 00:00:00 2001 From: AbdulWahab3181 Date: Thu, 4 Jul 2024 20:55:50 +0500 Subject: [PATCH] fix UT and added console --- handlers/workspaces_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/handlers/workspaces_test.go b/handlers/workspaces_test.go index cb5b0339e..476ab3a5e 100644 --- a/handlers/workspaces_test.go +++ b/handlers/workspaces_test.go @@ -1226,8 +1226,10 @@ func TestGetUserDropdownWorkspaces(t *testing.T) { db.TestDB.CreateOrEditPerson(person) db.TestDB.CreateOrEditPerson(person2) + workspaceUuid := "workspace_uuid" + workspace := db.Workspace{ - Uuid: "workspace_uuid", + Uuid: workspaceUuid, Name: "workspace_name", OwnerPubKey: "person.OwnerPubkey", Github: "gtihub", @@ -1285,7 +1287,9 @@ func TestGetUserDropdownWorkspaces(t *testing.T) { t.Fatal(err) } - updatedWorkspace := db.TestDB.GetWorkspaceByUuid(workspace.Uuid) + fmt.Println("workspaceUuid: ", workspaceUuid) + + updatedWorkspace := db.TestDB.GetWorkspaceByUuid(workspaceUuid) updatedWorkspaces := []db.Workspace{updatedWorkspace} assert.NotEmpty(t, responseWorkspaces)