Skip to content

Commit

Permalink
server: Fix selectOrchestrator test
Browse files Browse the repository at this point in the history
  • Loading branch information
yondonfu committed Nov 2, 2021
1 parent 399714c commit fbcdccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/mediaserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ func TestSelectOrchestrator(t *testing.T) {
// Skip orchestrator if missing auth token
sd.infos[0].AuthToken = nil

sess, err = selectOrchestrator(s.LivepeerNode, sp, 4, newSuspender())
sess, err = selectOrchestrator(s.LivepeerNode, sp, 4, newSuspender(), func(float32) bool { return true })
require.Nil(err)

assert.Len(sess, 1)
Expand All @@ -421,7 +421,7 @@ func TestSelectOrchestrator(t *testing.T) {
sd.infos[0].AuthToken = &net.AuthToken{}
sd.infos[0].TicketParams = nil

sess, err = selectOrchestrator(s.LivepeerNode, sp, 4, newSuspender())
sess, err = selectOrchestrator(s.LivepeerNode, sp, 4, newSuspender(), func(float32) bool { return true })
require.Nil(err)

assert.Len(sess, 1)
Expand Down

0 comments on commit fbcdccb

Please sign in to comment.