Skip to content

Commit

Permalink
Merge 6376f08 into 3c8ea30
Browse files Browse the repository at this point in the history
  • Loading branch information
jdef committed Jun 24, 2017
2 parents 3c8ea30 + 6376f08 commit cead4b1
Show file tree
Hide file tree
Showing 12 changed files with 16,635 additions and 4,441 deletions.
2 changes: 2 additions & 0 deletions api/v1/cmd/example-scheduler/app/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func prepareExecutorInfo(
if execImage != "" {
// Create mesos custom executor
return &mesos.ExecutorInfo{
Type: mesos.ExecutorInfo_CUSTOM,
ExecutorID: mesos.ExecutorID{Value: "default"},
Name: proto.String("Test Executor"),
Command: mesos.CommandInfo{
Expand Down Expand Up @@ -73,6 +74,7 @@ func prepareExecutorInfo(

// Create mesos custom executor
return &mesos.ExecutorInfo{
Type: mesos.ExecutorInfo_CUSTOM,
ExecutorID: mesos.ExecutorID{Value: "default"},
Name: proto.String("Test Executor"),
Command: mesos.CommandInfo{
Expand Down
3 changes: 2 additions & 1 deletion api/v1/lib/httpcli/httpsched/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestDisconnectionDecoder(t *testing.T) {
// ERROR event triggers disconnect
latch.Reset()
errtype := scheduler.Event_ERROR
event := &scheduler.Event{Type: &errtype}
event := &scheduler.Event{Type: errtype}
decoder = encoding.DecoderFunc(func(um encoding.Unmarshaler) error { return nil })
d = disconnectionDecoder(decoder, latch.Close)
_ = d.Decode(event)
Expand All @@ -39,6 +39,7 @@ func TestDisconnectionDecoder(t *testing.T) {
// sanity: non-ERROR event does not trigger disconnect
latch.Reset()
errtype = scheduler.Event_SUBSCRIBED
event = &scheduler.Event{Type: errtype}
_ = d.Decode(event)
if latch.Closed() {
t.Error("disconnect func was unexpectedly called")
Expand Down

0 comments on commit cead4b1

Please sign in to comment.