Skip to content

Commit

Permalink
refactor : lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tharun0064 committed Jan 15, 2025
1 parent 6624337 commit a58583a
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package commonutils_test

import (
"sort"
"testing"
"time"

Expand All @@ -17,9 +18,11 @@ func TestGetQuotedStringFromArray(t *testing.T) {
}

func TestGetDatabaseListInString(t *testing.T) {
dbList := collection.DatabaseList{
"db1": {},
"db2": {},
dbListKeys := []string{"db1", "db2"}
sort.Strings(dbListKeys) // Sort the keys to ensure consistent order
dbList := collection.DatabaseList{}
for _, key := range dbListKeys {
dbList[key] = collection.SchemaList{}
}
expected := "'db1','db2'"
result := commonutils.GetDatabaseListInString(dbList)
Expand Down

0 comments on commit a58583a

Please sign in to comment.