lotus/sched_test.go

19 lines
300 B
Go
Raw Normal View History

2020-06-24 21:06:56 +00:00
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))
}