Test: new changes in 3.4.0

This commit is contained in:
HFO4
2021-11-20 16:59:29 +08:00
parent 532bff820a
commit 9056ef9171
6 changed files with 112 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
package serializer
import (
model "github.com/cloudreve/Cloudreve/v3/models"
"github.com/stretchr/testify/assert"
"testing"
)
func TestSlaveTransferReq_Hash(t *testing.T) {
a := assert.New(t)
s1 := &SlaveTransferReq{
Src: "1",
Policy: &model.Policy{},
}
s2 := &SlaveTransferReq{
Src: "2",
Policy: &model.Policy{},
}
a.NotEqual(s1.Hash("1"), s2.Hash("1"))
}