♻️ refactor: change test logic

This commit is contained in:
Edward
2023-05-26 20:40:00 +08:00
parent 708b254563
commit cee2253313
5 changed files with 27 additions and 25 deletions

View File

@@ -1,9 +1,11 @@
package common
import (
"github.com/google/uuid"
"strings"
"sync"
"time"
"github.com/google/uuid"
)
var StartTime = time.Now().Unix() // unit: second
@@ -21,6 +23,8 @@ var UsingSQLite = false
var SessionSecret = uuid.New().String()
var SQLitePath = "one-api.db"
var ServerToken = strings.ReplaceAll(uuid.New().String(), "-", "")
var OptionMap map[string]string
var OptionMapRWMutex sync.RWMutex