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 Dec 2, 2024
1 parent 0f2fb1b commit f8afd00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/storage/cassandra/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ func TestCreateSpanReaderError(t *testing.T) {
mock.Anything).Return(query)
query.On("Exec").Return(errors.New("table does not exist"))
f := NewFactory()
f.sessionBuilderFn = new(mockSessionBuilder).add(session, nil).build
f.archiveConfig = &config.Configuration{}
f.sessionBuilderFn = new(mockSessionBuilder).add(session, nil).add(session, nil).build
require.NoError(t, f.Initialize(metrics.NullFactory, zap.NewNop()))
r, err := f.CreateSpanReader()
require.Error(t, err)
Expand Down

0 comments on commit f8afd00

Please sign in to comment.