Skip to content

Commit

Permalink
updates the test to comply to the updated TaskDescription.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerard Maas authored and tnachen committed Nov 21, 2015
1 parent 855d759 commit 7d20148
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ class CoarseMesosSchedulerBackendSuite extends FunSuite
2
))

val taskDesc = new TaskDescription(1L, "s1", "n1", 0, ByteBuffer.wrap(new Array[Byte](0)))
val taskDesc2 = new TaskDescription(2L, "s2", "n2", 0, ByteBuffer.wrap(new Array[Byte](0)))
val taskDesc = new TaskDescription(1L, 0, "s1", "n1", 0, ByteBuffer.wrap(new Array[Byte](0)))
val taskDesc2 = new TaskDescription(2L, 0, "s2", "n2", 0, ByteBuffer.wrap(new Array[Byte](0)))
EasyMock.expect(taskScheduler.resourceOffers(EasyMock.eq(expectedWorkerOffers)))
.andReturn(Seq(Seq(taskDesc, taskDesc2)))
EasyMock.expect(taskScheduler.CPUS_PER_TASK).andReturn(2).anyTimes()
Expand Down

0 comments on commit 7d20148

Please sign in to comment.