mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-12-22 17:52:30 +01:00
TestMigrationFrom4: move the longest rule on top
This commit is contained in:
parent
ff2a354333
commit
0ff1f6520a
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue