mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 00:33:03 +08:00
etcd implemented
This commit is contained in:
20
etcd/etcd_test.go
Normal file
20
etcd/etcd_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package etcd
|
||||
|
||||
import (
|
||||
"github.com/gofiber/utils"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_Etcd_Set(t *testing.T) {
|
||||
testStore := New(Config{
|
||||
Endpoints: []string{"localhost:2379"},
|
||||
})
|
||||
|
||||
var (
|
||||
key = "john"
|
||||
val = []byte("doe")
|
||||
)
|
||||
|
||||
err := testStore.Set(key, val, 0)
|
||||
utils.AssertEqual(t, nil, err)
|
||||
}
|
Reference in New Issue
Block a user