mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
e2e utils remove ineffectual assignment of allocs
This commit is contained in:
@@ -78,12 +78,13 @@ func RegisterAllocs(t *testing.T, nomadClient *api.Client, jobFile string, jobID
|
||||
}
|
||||
|
||||
func RegisterAndWaitForAllocs(t *testing.T, nomadClient *api.Client, jobFile string, jobID string) []*api.AllocationListStub {
|
||||
// Parse job
|
||||
require := require.New(t)
|
||||
allocs := RegisterAllocs(t, nomadClient, jobFile, jobID)
|
||||
g := NewGomegaWithT(t)
|
||||
jobs := nomadClient.Jobs()
|
||||
|
||||
// Start allocations
|
||||
RegisterAllocs(t, nomadClient, jobFile, jobID)
|
||||
|
||||
// Wrap in retry to wait until placement
|
||||
g.Eventually(func() []*api.AllocationListStub {
|
||||
// Look for allocations
|
||||
|
||||
Reference in New Issue
Block a user