Skip to content

Commit

Permalink
Update mock.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Oct 9, 2024
1 parent 5e49e20 commit 16bf208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions writers/writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ type mockDestination struct {
emitError bool
}

func (m *mockDestination) Write(ctx context.Context, msgs []lib.RawMessage) error {
func (m *mockDestination) Write(_ context.Context, msgs []lib.RawMessage) error {
if m.emitError {
return fmt.Errorf("test write-raw-messages error")
}
m.messages = append(m.messages, msgs...)
return nil
}

func (m *mockDestination) OnComplete() error {
func (m *mockDestination) OnComplete(_ context.Context) error {
return nil
}

Expand Down

0 comments on commit 16bf208

Please sign in to comment.