From e54ea2ba2f19bbcea06c9deed1a28923a2db5532 Mon Sep 17 00:00:00 2001 From: Julien Tant Date: Wed, 12 Feb 2025 13:22:04 -0700 Subject: [PATCH] fix tests --- server/public/model/custom_profile_attributes_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/public/model/custom_profile_attributes_test.go b/server/public/model/custom_profile_attributes_test.go index 0c43a1048e3..556fa40af94 100644 --- a/server/public/model/custom_profile_attributes_test.go +++ b/server/public/model/custom_profile_attributes_test.go @@ -49,7 +49,7 @@ func TestCustomProfileAttributeSelectOptionIsValid(t *testing.T) { Name: "Test Option", Color: "#FF0000", }, - wantErr: "invalid option at index 1: id cannot be empty", + wantErr: "id cannot be empty", }, { name: "invalid ID", @@ -133,7 +133,7 @@ func TestCustomProfileAttributesSelectOptionsIsValid(t *testing.T) { Color: "#00FF00", }, }, - wantErr: "id cannot be empty", + wantErr: "invalid option at index 1: id cannot be empty", }, { name: "duplicate names",