update test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Arnas Udovic 2024-07-18 22:53:43 +03:00
parent 853b8d8929
commit 3885d53a40
2 changed files with 3 additions and 3 deletions

View file

@ -159,7 +159,7 @@ func (db *DB) Inc(vpath string) bool {
val, found := db.Get(vpath)
if !found {
return false
val = "0"
}
valAbc := abcex.Decode(val)
@ -181,7 +181,7 @@ func (db *DB) Dec(vpath string) bool {
val, found := db.Get(vpath)
if !found {
return false
val = "0"
}
valAbc := abcex.Decode(val)

View file

@ -119,7 +119,7 @@ func TestNow(t *testing.T) {
db.Now("today")
val, found := db.Get("today")
fmt.Println(val)
if !found || len(val) != 25 {
if !found || len(val) < 10 {
t.Fatal("today value length wrong:", len(val))
}
}