Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindiu authored and actions-user committed Oct 2, 2020
1 parent fd108ff commit b443696
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions internal/db/nosql/cassandra/option_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,17 @@ func TestWithConsistency(t *testing.T) {
},
},
},
{
name: "set consistency level success with complex string",
args: args{
consistency: "-One_",
},
want: want{
obj: &T{
consistency: gocql.One,
},
},
},
{
name: "return error when consistency is empty",
args: args{
Expand Down Expand Up @@ -1001,6 +1012,17 @@ func TestWithSerialConsistency(t *testing.T) {
},
},
},
{
name: "set serial consistency level success with complex string",
args: args{
consistency: "-serial_",
},
want: want{
obj: &T{
serialConsistency: gocql.Serial,
},
},
},
{
name: "return error when consistency is empty",
args: args{
Expand Down

0 comments on commit b443696

Please sign in to comment.