mirror of
https://github.com/fumiama/go-registry.git
synced 2026-06-30 15:50:23 +08:00
add push
This commit is contained in:
10
reg_test.go
10
reg_test.go
@@ -122,8 +122,16 @@ func TestPush(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
m, err := hex.DecodeString("ef27cbb457d018423e9b6af5edca7a21")
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
err = r.Set("data/ChouXiangHua/cxh.db", helper.BytesToString(m))
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
err = r.Close()
|
||||||
*/
|
*/
|
||||||
err = r.Close()
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user