1
0
mirror of https://github.com/fumiama/go-registry.git synced 2026-06-11 20:10:25 +08:00

add ack cmd type

This commit is contained in:
源文雨
2022-04-17 17:10:58 +08:00
parent 892dc502b4
commit 2c62a8ecf3
5 changed files with 31 additions and 22 deletions

View File

@@ -11,7 +11,7 @@ func TestReg(t *testing.T) {
t.Fatal(err)
}
v, err := r.Get("test")
if err != nil {
if err != nil && err != ErrNoSuchKey {
t.Fatal(err)
}
t.Log(v)
@@ -29,10 +29,10 @@ func TestReg(t *testing.T) {
t.Fatal(err)
}
v, err = r.Get("test")
if err != nil {
t.Log(v)
if err != ErrNoSuchKey {
t.Fatal(err)
}
t.Log(v)
err = r.Close()
if err != nil {
t.Fatal(err)