oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package team
2
3import "testing"
4
5func TestTrialAccountMismatchNoSecondAttempt(t *testing.T) {
6 e := newEnv(t)
7 _, scope := e.createJob(softwareSpec(SoftwareSteps(false)))
8 h := e.claim(scope, "reproduce", "runner", "workspace")
9 must(t, e.store.Complete(e.ctx, scope, h, AttemptResult{Outcome: OutcomeFailure, Detail: "account_mismatch"}))
10 must(t, e.store.Contain(e.ctx, scope, h.Attempt, "contained"))
11 if _, err := e.store.Claim(e.ctx, scope, "reproduce", "runner", "another-workspace"); err == nil {
12 t.Fatal("account mismatch admitted second attempt")
13 }
14}
15