fix the test blinking
This commit is contained in:
parent
2ef1970479
commit
8ff7cc9e16
@ -5,6 +5,7 @@ import (
|
|||||||
"github.com/anytypeio/any-sync/commonspace/spacestorage/mock_spacestorage"
|
"github.com/anytypeio/any-sync/commonspace/spacestorage/mock_spacestorage"
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
"sort"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -70,6 +71,7 @@ func TestDeletionState_GetQueued(t *testing.T) {
|
|||||||
fx.delState.queued["id2"] = struct{}{}
|
fx.delState.queued["id2"] = struct{}{}
|
||||||
|
|
||||||
queued := fx.delState.GetQueued()
|
queued := fx.delState.GetQueued()
|
||||||
|
sort.Strings(queued)
|
||||||
require.Equal(t, []string{"id1", "id2"}, queued)
|
require.Equal(t, []string{"id1", "id2"}, queued)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user