Skip to content

Commit

Permalink
* fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcoulombe committed Aug 22, 2022
1 parent 110ab66 commit 0b39bfd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions internal/plugin/redisElastiCacheClient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package plugin

import (
"context"
"github.com/aws/aws-sdk-go/service/elasticache"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/vault/sdk/database/dbplugin/v5"
"os"
"reflect"
"strings"
"testing"
"time"

"github.com/aws/aws-sdk-go/service/elasticache"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/vault/sdk/database/dbplugin/v5"
)

type fields struct {
Expand Down Expand Up @@ -79,7 +80,6 @@ func setUpClient(t *testing.T, r *redisElastiCacheDB, config map[string]interfac
Config: config,
VerifyConnection: true,
})

if err != nil {
t.Errorf("unable to pre initialize redis client for test cases: %v", err)
}
Expand All @@ -96,7 +96,6 @@ func setUpTestUser(t *testing.T, r *redisElastiCacheDB) string {
},
Password: "abcdefghijklmnopqrstuvwxyz",
})

if err != nil {
t.Errorf("unable to provision test user for test cases: %v", err)
}
Expand All @@ -113,7 +112,7 @@ func teardownTestUser(t *testing.T, r redisElastiCacheDB, username string) {
for i := 0; i < 20; i++ {
_, err := r.DeleteUser(nil, dbplugin.DeleteUserRequest{
Username: username,
}
})

if err == nil {
break
Expand Down

0 comments on commit 0b39bfd

Please sign in to comment.