Do not relay on ID start at 1

This commit is contained in:
Michael Jerger 2024-05-14 07:48:00 +02:00
parent 57a9729094
commit 08fe47d5c8

View file

@ -142,8 +142,7 @@ func TestActivityPubRepositoryInboxValid(t *testing.T) {
assert.NoError(t, err) assert.NoError(t, err)
assert.Equal(t, http.StatusNoContent, resp.StatusCode) assert.Equal(t, http.StatusNoContent, resp.StatusCode)
federationHost := unittest.AssertExistsAndLoadBean(t, &forgefed.FederationHost{ID: 1}) unittest.AssertExistsAndLoadBean(t, &forgefed.FederationHost{HostFqdn: "127.0.0.1"})
assert.Equal(t, "127.0.0.1", federationHost.HostFqdn)
}) })
} }