fix the test blinking

This commit is contained in:
Sergey Cherepanov 2023-01-31 19:34:23 +03:00 committed by Mikhail Iudin
parent 820d5af672
commit bac139c93f
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0

View File

@ -5,6 +5,7 @@ import (
"github.com/anytypeio/any-sync/commonspace/spacestorage/mock_spacestorage"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"
"sort"
"testing"
)
@ -70,6 +71,7 @@ func TestDeletionState_GetQueued(t *testing.T) {
fx.delState.queued["id2"] = struct{}{}
queued := fx.delState.GetQueued()
sort.Strings(queued)
require.Equal(t, []string{"id1", "id2"}, queued)
}