Merge pull request 'mesh-build-go's compose integration test gives its module one slot (issue 1126)' (#553) from fix/1126-capacity-transition into main
This commit was merged in pull request #553.
This commit is contained in:
@@ -73,6 +73,7 @@ func TestAComposeAskIsBuiltOnceAndAnsweredOnTheBus(t *testing.T) {
|
|||||||
states := newStates()
|
states := newStates()
|
||||||
m := moduleWith(states, "go1.26.0")
|
m := moduleWith(states, "go1.26.0")
|
||||||
m.Work, m.Cache, m.Inside = t.TempDir(), t.TempDir(), true
|
m.Work, m.Cache, m.Inside = t.TempDir(), t.TempDir(), true
|
||||||
|
m.Capacity = func() int { return 1 } // its own slot: no settings file, and a node with no capacity set pulls nothing (ADR 0567 §15)
|
||||||
m.Run = StepRunner(t.TempDir())
|
m.Run = StepRunner(t.TempDir())
|
||||||
m.GoModCache = goEnvOf(t, "GOMODCACHE") // the module cache this module's own build filled, read and not fetched
|
m.GoModCache = goEnvOf(t, "GOMODCACHE") // the module cache this module's own build filled, read and not fetched
|
||||||
run, gocache := m.Run, goEnvOf(t, "GOCACHE") // this machine's build cache, so the composer's packages compile once
|
run, gocache := m.Run, goEnvOf(t, "GOCACHE") // this machine's build cache, so the composer's packages compile once
|
||||||
|
|||||||
Reference in New Issue
Block a user