Skip to content

Commit

Permalink
test: QueryMetrics, WriteMessage stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
karitra committed Jan 25, 2018
1 parent a2e0be3 commit c545557
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions isolate/d_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ func (t *testDownstream) Write(ctx context.Context, code uint64, data []byte) er
return nil
}

func (t *testDownstream) WriteMessage(ctx context.Context, num uint64, packedPayload []byte) error {
return nil
}

func (t *testDownstream) Error(ctx context.Context, code uint64, errorcode [2]int, msg string) error {
t.ch <- testDownstreamItem{code, []interface{}{errorcode, msg}}
return nil
Expand Down Expand Up @@ -72,6 +76,10 @@ func (b *testBox) Close() error {
return nil
}

func (b *testBox) QueryMetrics(uuids []string) (response []MarkedWorkerMetrics) {
return
}

type testProcess struct {
ctx context.Context
killed chan struct{}
Expand Down

0 comments on commit c545557

Please sign in to comment.