Commit c29ec1b885
Verified · cmc ci/build: success
e2e/pages_test.go +4 −1
| @@ -263,7 +263,10 @@ func TestPages(t *testing.T) { | ||
| 263 | 263 | if _, _, code = inst.ssh(t, bobKey, "", "repo", "domain", "add", "bob/held", "exp.example.org"); code != 2 { |
| 264 | 264 | t.Fatal("live pending claim did not hold the name") |
| 265 | 265 | } |
| 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) | |
| 267 | 270 | if _, errOut, code = inst.ssh(t, bobKey, "", "repo", "domain", "add", "bob/held", "exp.example.org"); code != 0 { |
| 268 | 271 | t.Fatalf("expired claim still held the name: %s", errOut) |
| 269 | 272 | } |