Skip to content

Commit

Permalink
Fix Test
Browse files Browse the repository at this point in the history
Signed-off-by: Mahad Zaryab <[email protected]>
  • Loading branch information
mahadzaryab1 committed Jan 22, 2025
1 parent 47ff4c1 commit 66436be
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions plugin/storage/grpc/shared/grpc_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,11 @@ func withGRPCServer(fn func(r *grpcServerTest)) {
depReader := new(dependencyStoreMocks.Reader)
streamWriter := new(spanStoreMocks.Writer)

impl := &mockStoragePlugin{
mockPlugin := &mockStoragePlugin{
spanReader: spanReader,
spanWriter: spanWriter,
depsReader: depReader,
streamWriter: streamWriter,
mockPlugin := &mockStoragePlugin{
spanReader: spanReader,
spanWriter: spanWriter,
depsReader: depReader,
streamWriter: streamWriter,
}

impl := &GRPCHandlerStorageImpl{
Expand All @@ -82,10 +77,10 @@ func withGRPCServer(fn func(r *grpcServerTest)) {
return mockPlugin.depsReader
},
ArchiveSpanReader: func() spanstore.Reader {
return mockPlugin.archiveReader
return mockPlugin.spanReader
},
ArchiveSpanWriter: func() spanstore.Writer {
return mockPlugin.archiveWriter
return mockPlugin.spanWriter
},
StreamingSpanWriter: func() spanstore.Writer {
return mockPlugin.streamWriter
Expand Down

0 comments on commit 66436be

Please sign in to comment.