Fix: failed test due to modifications

This commit is contained in:
HFO4
2020-02-27 15:34:16 +08:00
parent c4eada2723
commit 2f1f619f2f
5 changed files with 101 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
package hashid
import (
"github.com/HFO4/cloudreve/bootstrap/constant"
"github.com/stretchr/testify/assert"
"testing"
)
@@ -52,6 +53,7 @@ func TestHashDecode(t *testing.T) {
func TestDecodeHashID(t *testing.T) {
asserts := assert.New(t)
constant.HashIDTable = []int{0, 1, 2, 3, 4, 5}
// 成功
{