A CLI-first git forge.

cli forge git self-hosted

https://gitbay.org

Commit c29ec1b885

c29ec1b885bc69b6d96caf70441acf583f1d9aa1

parent: bb5dfd7d6c

Verified · cmc ci/build: success

cmc <hello@cleberg.net> · 2026-08-25T19:06:54Z

Deflake the domain-expiry test: second-granularity timestamps need real slack
e2e/pages_test.go +4 −1
@@ -263,7 +263,10 @@ func TestPages(t *testing.T) {
263263 if _, _, code = inst.ssh(t, bobKey, "", "repo", "domain", "add", "bob/held", "exp.example.org"); code != 2 {
264264 t.Fatal("live pending claim did not hold the name")
265265 }
266 time.Sleep(5500 * time.Millisecond) // one TTL (GITBAY_DOMAIN_PENDING_TTL=5s) plus slack
266 // One TTL (GITBAY_DOMAIN_PENDING_TTL=5s) plus real slack: timestamps
267 // have second granularity, so a 5.5s sleep can land on a diff of
268 // exactly 5, which is not > TTL.
269 time.Sleep(7 * time.Second)
267270 if _, errOut, code = inst.ssh(t, bobKey, "", "repo", "domain", "add", "bob/held", "exp.example.org"); code != 0 {
268271 t.Fatalf("expired claim still held the name: %s", errOut)
269272 }