Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
taylanisikdemir committed Feb 22, 2024
1 parent 29db00f commit f67e824
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/persistence/nosql/nosqlplugin/cassandra/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"testing"

"github.com/golang/mock/gomock"

"github.com/uber/cadence/common/config"
"github.com/uber/cadence/common/dynamicconfig"
"github.com/uber/cadence/common/log/testlogger"
Expand Down Expand Up @@ -222,6 +223,7 @@ func TestExecuteBatchWithConsistencyAll(t *testing.T) {
},
batchMockPrep: func(batch *gocql.MockBatch) {
batch.EXPECT().Consistency(cassandraAllConslevel).Return(batch).Times(1)
batch.EXPECT().Consistency(cassandraDefaultConsLevel).Return(batch).Times(1)
},
wantErr: false,
},
Expand All @@ -237,7 +239,7 @@ func TestExecuteBatchWithConsistencyAll(t *testing.T) {
batchMockPrep: func(batch *gocql.MockBatch) {
batch.EXPECT().Consistency(cassandraAllConslevel).Return(batch).Times(1)
},
wantErr: false,
wantErr: true,
},
}

Expand Down

0 comments on commit f67e824

Please sign in to comment.