mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-10-16 06:02:22 +00:00
mitigate Block by future StartTime
This commit is contained in:
parent
1b35bd2911
commit
0ddc2db46a
4 changed files with 21 additions and 2 deletions
|
@ -30,4 +30,15 @@ func Test_FederationInfoValidation(t *testing.T) {
|
|||
if res, _ := validation.IsValid(sut); res {
|
||||
t.Errorf("sut should be invalid")
|
||||
}
|
||||
|
||||
sut = FederationInfo{
|
||||
HostFqdn: "host.do.main",
|
||||
NodeInfo: NodeInfo{
|
||||
Source: "forgejo",
|
||||
},
|
||||
LatestActivity: time.Now().Add(1 * time.Hour),
|
||||
}
|
||||
if res, _ := validation.IsValid(sut); res {
|
||||
t.Errorf("sut should be invalid")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue