This commit is contained in:
Drew Bailey 2020-02-04 11:59:28 -05:00
parent 75053a0d10
commit a716d57ad7
No known key found for this signature in database
GPG key ID: FBA61B9FB7CCE1A7
2 changed files with 0 additions and 21 deletions

View file

@ -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 {

View file

@ -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 {