Test: new database models and middlewares

This commit is contained in:
HFO4
2021-11-08 20:49:07 +08:00
parent e41ec9defa
commit 3064ed60f3
5 changed files with 153 additions and 23 deletions

View File

@@ -177,3 +177,14 @@ func TestDownload_Delete(t *testing.T) {
}
}
func TestDownload_GetNodeID(t *testing.T) {
a := assert.New(t)
record := Download{}
// compatible with 3.4
a.EqualValues(1, record.GetNodeID())
record.NodeID = 5
a.EqualValues(5, record.GetNodeID())
}