diff --git a/user/manager_test.go b/user/manager_test.go index b0143b97..76bddc57 100644 --- a/user/manager_test.go +++ b/user/manager_test.go @@ -1101,10 +1101,10 @@ func TestMigrationFrom1(t *testing.T) { require.Equal(t, syncTopicLength, len(ben.SyncTopic)) require.NotEqual(t, ben.SyncTopic, phil.SyncTopic) require.Equal(t, 2, len(benGrants)) - require.Equal(t, "stats", benGrants[0].TopicPattern) - require.Equal(t, PermissionReadWrite, benGrants[0].Allow) - require.Equal(t, "secret", benGrants[1].TopicPattern) - require.Equal(t, PermissionRead, benGrants[1].Allow) + require.Equal(t, "secret", benGrants[0].TopicPattern) + require.Equal(t, PermissionRead, benGrants[0].Allow) + require.Equal(t, "stats", benGrants[1].TopicPattern) + require.Equal(t, PermissionReadWrite, benGrants[1].Allow) require.Equal(t, "u_everyone", everyone.ID) require.Equal(t, Everyone, everyone.Name)