This commit is contained in:
parent
03eb87d9dd
commit
615029f6c0
@ -81,9 +81,9 @@ func TestSnapshot(t *testing.T) {
|
|||||||
Labels: []string{"userid:1"},
|
Labels: []string{"userid:1"},
|
||||||
}
|
}
|
||||||
|
|
||||||
assert.Equal(t, "app_0102:1634510035:eyJBcHBOYW1lIjoiYXBwXzAxMDIiLCJUaW1lU3RhbXAiOjE2MzQ1MTAwMzUsIkxhYmVscyI6WyJ1c2VyaWQ6MSJdfQ==", snapshot.KeyName())
|
assert.Equal(t, "app_0102:1634510035:eyJhcHBfbmFtZSI6ImFwcF8wMTAyIiwidHMiOjE2MzQ1MTAwMzUsImxhYmVscyI6WyJ1c2VyaWQ6MSJdfQ==", snapshot.KeyName())
|
||||||
|
|
||||||
snapshot2, err := DecodeKeyName("app_0102:1634510035:eyJBcHBOYW1lIjoiYXBwXzAxMDIiLCJUaW1lU3RhbXAiOjE2MzQ1MTAwMzUsIkxhYmVscyI6WyJ1c2VyaWQ6MSJdfQ==")
|
snapshot2, err := DecodeKeyName("app_0102:1634510035:eyJhcHBfbmFtZSI6ImFwcF8wMTAyIiwidHMiOjE2MzQ1MTAwMzUsImxhYmVscyI6WyJ1c2VyaWQ6MSJdfQ==")
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
assert.Equal(t, "app_0102", snapshot2.AppName)
|
assert.Equal(t, "app_0102", snapshot2.AppName)
|
||||||
assert.Equal(t, int64(1634510035), snapshot2.TimeStamp)
|
assert.Equal(t, int64(1634510035), snapshot2.TimeStamp)
|
||||||
|
Loading…
Reference in New Issue
Block a user