@@ -27,6 +27,11 @@ func joinedEnv(t *testing.T, backend backendKind) *testEnv {
2727 return env
2828}
2929
30+ func joinedLifecycleEnv (t * testing.T , backend backendKind ) * testEnv {
31+ t .Helper ()
32+ return joinedEnvInMode (t , backend , "wild-west" )
33+ }
34+
3035// forkCloneDir returns the fork clone dir from the wasteland config.
3136func forkCloneDir (t * testing.T , env * testEnv ) string {
3237 t .Helper ()
@@ -146,7 +151,7 @@ func TestSchemaInit(t *testing.T) {
146151func TestPostWanted (t * testing.T ) {
147152 for _ , backend := range backends {
148153 t .Run (string (backend ), func (t * testing.T ) {
149- env := joinedEnv (t , backend )
154+ env := joinedLifecycleEnv (t , backend )
150155 dbDir := forkCloneDir (t , env )
151156
152157 stdout , stderr , err := runWL (t , env , "post" ,
@@ -200,7 +205,7 @@ func TestPostWanted(t *testing.T) {
200205func TestClaimWanted (t * testing.T ) {
201206 for _ , backend := range backends {
202207 t .Run (string (backend ), func (t * testing.T ) {
203- env := joinedEnv (t , backend )
208+ env := joinedLifecycleEnv (t , backend )
204209 dbDir := forkCloneDir (t , env )
205210
206211 // Post an item first.
@@ -235,7 +240,7 @@ func TestClaimWanted(t *testing.T) {
235240func TestClaimAlreadyClaimed (t * testing.T ) {
236241 for _ , backend := range backends {
237242 t .Run (string (backend ), func (t * testing.T ) {
238- env := joinedEnv (t , backend )
243+ env := joinedLifecycleEnv (t , backend )
239244 dbDir := forkCloneDir (t , env )
240245
241246 // Post and claim.
@@ -269,7 +274,7 @@ func TestClaimAlreadyClaimed(t *testing.T) {
269274func TestDoneFullLifecycle (t * testing.T ) {
270275 for _ , backend := range backends {
271276 t .Run (string (backend ), func (t * testing.T ) {
272- env := joinedEnv (t , backend )
277+ env := joinedLifecycleEnv (t , backend )
273278 dbDir := forkCloneDir (t , env )
274279
275280 // Post.
@@ -317,7 +322,7 @@ func TestDoneFullLifecycle(t *testing.T) {
317322func TestDoneWrongClaimer (t * testing.T ) {
318323 for _ , backend := range backends {
319324 t .Run (string (backend ), func (t * testing.T ) {
320- env := joinedEnv (t , backend )
325+ env := joinedLifecycleEnv (t , backend )
321326 dbDir := forkCloneDir (t , env )
322327
323328 // Post and claim as the default rig (forkOrg handle).
@@ -354,7 +359,7 @@ func TestDoneWrongClaimer(t *testing.T) {
354359func TestDoneUnclaimed (t * testing.T ) {
355360 for _ , backend := range backends {
356361 t .Run (string (backend ), func (t * testing.T ) {
357- env := joinedEnv (t , backend )
362+ env := joinedLifecycleEnv (t , backend )
358363 dbDir := forkCloneDir (t , env )
359364
360365 // Post but don't claim.
@@ -387,7 +392,7 @@ func TestDoneUnclaimed(t *testing.T) {
387392func TestPostOutput (t * testing.T ) {
388393 for _ , backend := range backends {
389394 t .Run (string (backend ), func (t * testing.T ) {
390- env := joinedEnv (t , backend )
395+ env := joinedLifecycleEnv (t , backend )
391396
392397 stdout , _ , err := runWL (t , env , "post" , "--title" , "Output format test" , "--type" , "docs" , "--no-push" )
393398 if err != nil {
@@ -410,7 +415,7 @@ func TestPostOutput(t *testing.T) {
410415func TestAcceptFullLifecycle (t * testing.T ) {
411416 for _ , backend := range backends {
412417 t .Run (string (backend ), func (t * testing.T ) {
413- env := joinedEnv (t , backend )
418+ env := joinedLifecycleEnv (t , backend )
414419 dbDir := forkCloneDir (t , env )
415420
416421 // Post as forkOrg (poster).
@@ -487,7 +492,7 @@ func TestAcceptFullLifecycle(t *testing.T) {
487492func TestAcceptSelfReject (t * testing.T ) {
488493 for _ , backend := range backends {
489494 t .Run (string (backend ), func (t * testing.T ) {
490- env := joinedEnv (t , backend )
495+ env := joinedLifecycleEnv (t , backend )
491496
492497 // Post → claim → done as forkOrg.
493498 stdout , _ , err := runWL (t , env , "post" , "--title" , "Self accept test" , "--type" , "bug" , "--no-push" )
@@ -518,7 +523,7 @@ func TestAcceptSelfReject(t *testing.T) {
518523func TestRejectFullLifecycle (t * testing.T ) {
519524 for _ , backend := range backends {
520525 t .Run (string (backend ), func (t * testing.T ) {
521- env := joinedEnv (t , backend )
526+ env := joinedLifecycleEnv (t , backend )
522527 dbDir := forkCloneDir (t , env )
523528
524529 // Post as forkOrg (poster).
@@ -602,7 +607,7 @@ func TestRejectFullLifecycle(t *testing.T) {
602607func TestUpdateWanted (t * testing.T ) {
603608 for _ , backend := range backends {
604609 t .Run (string (backend ), func (t * testing.T ) {
605- env := joinedEnv (t , backend )
610+ env := joinedLifecycleEnv (t , backend )
606611 dbDir := forkCloneDir (t , env )
607612
608613 // Post.
@@ -643,7 +648,7 @@ func TestUpdateWanted(t *testing.T) {
643648func TestUpdateClaimedFails (t * testing.T ) {
644649 for _ , backend := range backends {
645650 t .Run (string (backend ), func (t * testing.T ) {
646- env := joinedEnv (t , backend )
651+ env := joinedLifecycleEnv (t , backend )
647652
648653 // Post and claim.
649654 stdout , _ , err := runWL (t , env , "post" , "--title" , "Claimed update test" , "--type" , "bug" , "--no-push" )
@@ -669,7 +674,7 @@ func TestUpdateClaimedFails(t *testing.T) {
669674func TestUnclaimWanted (t * testing.T ) {
670675 for _ , backend := range backends {
671676 t .Run (string (backend ), func (t * testing.T ) {
672- env := joinedEnv (t , backend )
677+ env := joinedLifecycleEnv (t , backend )
673678 dbDir := forkCloneDir (t , env )
674679
675680 // Post an item.
@@ -713,7 +718,7 @@ func TestUnclaimWanted(t *testing.T) {
713718func TestUnclaimByPoster (t * testing.T ) {
714719 for _ , backend := range backends {
715720 t .Run (string (backend ), func (t * testing.T ) {
716- env := joinedEnv (t , backend )
721+ env := joinedLifecycleEnv (t , backend )
717722 dbDir := forkCloneDir (t , env )
718723
719724 // Post as forkOrg (poster).
@@ -761,7 +766,7 @@ func TestUnclaimByPoster(t *testing.T) {
761766func TestDeleteWanted (t * testing.T ) {
762767 for _ , backend := range backends {
763768 t .Run (string (backend ), func (t * testing.T ) {
764- env := joinedEnv (t , backend )
769+ env := joinedLifecycleEnv (t , backend )
765770 dbDir := forkCloneDir (t , env )
766771
767772 // Post.
@@ -793,7 +798,7 @@ func TestDeleteWanted(t *testing.T) {
793798func TestDeleteClaimedFails (t * testing.T ) {
794799 for _ , backend := range backends {
795800 t .Run (string (backend ), func (t * testing.T ) {
796- env := joinedEnv (t , backend )
801+ env := joinedLifecycleEnv (t , backend )
797802
798803 // Post and claim.
799804 stdout , _ , err := runWL (t , env , "post" , "--title" , "Claimed delete test" , "--type" , "feature" , "--no-push" )
0 commit comments