From 0ff1f6520a14b57ecbe7b46588531482d4583721 Mon Sep 17 00:00:00 2001 From: Nikolay Zlatev Date: Tue, 24 Oct 2023 14:02:04 +0300 Subject: [PATCH] TestMigrationFrom4: move the longest rule on top --- user/manager_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/user/manager_test.go b/user/manager_test.go index 76bddc57..af2bb3b1 100644 --- a/user/manager_test.go +++ b/user/manager_test.go @@ -1225,9 +1225,9 @@ func TestMigrationFrom4(t *testing.T) { require.Nil(t, err) require.Equal(t, 4, len(everyoneGrants)) - require.Equal(t, "down_*", everyoneGrants[0].TopicPattern) - require.Equal(t, "left_*", everyoneGrants[1].TopicPattern) - require.Equal(t, "mytopic_", everyoneGrants[2].TopicPattern) + require.Equal(t, "mytopic_", everyoneGrants[0].TopicPattern) + require.Equal(t, "down_*", everyoneGrants[1].TopicPattern) + require.Equal(t, "left_*", everyoneGrants[2].TopicPattern) require.Equal(t, "up*", everyoneGrants[3].TopicPattern) // Check they are stored correctly in the database