- 修复UpdateActStatusByTime中的BUG

This commit is contained in:
gazebo
2019-08-05 16:59:30 +08:00
parent 4b6ed5200f
commit 539cfb31fe
4 changed files with 22 additions and 14 deletions

View File

@@ -58,3 +58,10 @@ func TestGetEffectiveActStoreSkuInfo(t *testing.T) {
}
}
}
func TestUpdateActStatusByTime(t *testing.T) {
_, err := UpdateActStatusByTime(GetDB(), time.Now().Add(-48*time.Hour))
if err != nil {
t.Fatal(err)
}
}