Skip to content

Commit

Permalink
unit test description
Browse files Browse the repository at this point in the history
  • Loading branch information
guscarreon committed Feb 23, 2024
1 parent e9421e6 commit 63c5f7e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backends/aerospike_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,18 @@ func TestNewAerospikeBackend(t *testing.T) {
expectedLogEntryLevels []logrus.Level
}{
{
desc: "Unable to connect to URLs in Hosts list.",
// Unable to connect to host in Hosts list. Expect fatal level log entry
desc: "Hosts_slice_and_port",
inCfg: config.Aerospike{
Hosts: []string{"fakeUrl"},
Port: 8888,
},
expectedLogEntryLevels: []logrus.Level{logrus.FatalLevel},
},
{
desc: "Unable to connect to URL in Host field",
// Unable to connect to URL in Host field. Expect fatal level log entry and
// an info level log entry because the Host string is deprecated
desc: "Host_string_and_port",
inCfg: config.Aerospike{
Host: "fakeUrl",
Port: 8888,
Expand Down

0 comments on commit 63c5f7e

Please sign in to comment.