Chore: Deprecate FolderID in libraryElement struct in tests (#77473)

* Chore: Deprecate FolderID in LibraryElement struct in tests

* chore: revert formatting for deprecation comment
This commit is contained in:
Kat Yang
2023-11-06 11:31:15 -05:00
committed by GitHub
parent 2c7f364067
commit 911ffed45b
5 changed files with 29 additions and 26 deletions

View File

@ -26,7 +26,7 @@ func TestCreateLibraryElement(t *testing.T) {
Result: libraryElement{
ID: 1,
OrgID: 1,
FolderID: 1,
FolderID: 1, // nolint:staticcheck
UID: sc.initialResult.Result.UID,
Name: "Text - Library Panel",
Kind: int64(model.PanelElement),
@ -75,7 +75,7 @@ func TestCreateLibraryElement(t *testing.T) {
Result: libraryElement{
ID: 1,
OrgID: 1,
FolderID: 1,
FolderID: 1, // nolint:staticcheck
UID: command.UID,
Name: "Nonexistent UID",
Kind: int64(model.PanelElement),
@ -150,7 +150,7 @@ func TestCreateLibraryElement(t *testing.T) {
Result: libraryElement{
ID: 1,
OrgID: 1,
FolderID: 1,
FolderID: 1, // nolint:staticcheck
UID: result.Result.UID,
Name: "Library Panel Name",
Kind: int64(model.PanelElement),