lotus/sched_test.go
2020-06-25 16:45:25 +02:00

19 lines
300 B
Go

package sectorstorage
import (
"context"
"testing"
"github.com/stretchr/testify/require"
)
func TestWithPriority(t *testing.T) {
ctx := context.Background()
require.Equal(t, DefaultSchedPriority, getPriority(ctx))
ctx = WithPriority(ctx, 2222)
require.Equal(t, 2222, getPriority(ctx))
}