You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
298 B
20 lines
298 B
3 months ago
|
package service
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestUpdateCacheFavCount(t *testing.T) {
|
||
|
Init()
|
||
|
|
||
|
video_id := int64(2222222222222222222)
|
||
|
|
||
|
err1 := UpdateCacheFavCount(video_id, true)
|
||
|
err2 := UpdateCacheFavCount(video_id, false)
|
||
|
|
||
|
if err1 != nil || err2 != nil {
|
||
|
log.Panicln(err1, err2)
|
||
|
}
|
||
|
}
|