clean up
This commit is contained in:
parent
75053a0d10
commit
a716d57ad7
|
@ -5,7 +5,6 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
"github.com/hashicorp/nomad/api"
|
||||
"github.com/hashicorp/nomad/helper"
|
||||
"github.com/hashicorp/nomad/jobspec"
|
||||
|
@ -165,7 +164,6 @@ func AllocIDsFromAllocationListStubs(allocs []*api.AllocationListStub) []string
|
|||
func DeploymentsForJob(t *testing.T, nomadClient *api.Client, jobID string) []*api.Deployment {
|
||||
ds, _, err := nomadClient.Deployments().List(nil)
|
||||
require.NoError(t, err)
|
||||
spew.Dump(ds)
|
||||
|
||||
out := []*api.Deployment{}
|
||||
for _, d := range ds {
|
||||
|
|
|
@ -76,25 +76,6 @@ func (tc *SystemSchedTest) TestJobUpdateOnIneligbleNode(f *framework.F) {
|
|||
allocForDisabledNode[alloc.ID] = alloc
|
||||
}
|
||||
}
|
||||
// for _, alloc := range allocs {
|
||||
// testutil.WaitForResultRetries(50, func() (bool, error) {
|
||||
// time.Sleep(time.Millisecond * 100)
|
||||
// alloc, _, err := nomadClient.Allocations().Info(alloc.ID, nil)
|
||||
// if err != nil {
|
||||
// return false, err
|
||||
// }
|
||||
|
||||
// return alloc.ClientStatus != structs.AllocClientStatusPending,
|
||||
// fmt.Errorf("expected status running, but was: %s", alloc.ClientStatus)
|
||||
// }, func(err error) {
|
||||
// t.Fatalf("failed to wait on alloc: %v", err)
|
||||
// })
|
||||
|
||||
// // Due to task failures, restarts there could be multiple
|
||||
// if alloc.NodeID == disabledNodeID {
|
||||
// allocForDisabledNode[alloc.ID] = alloc
|
||||
// }
|
||||
// }
|
||||
|
||||
// Filter down to only our latest running alloc
|
||||
for _, alloc := range allocForDisabledNode {
|
||||
|
|
Loading…
Reference in a new issue