Skip to content

Commit

Permalink
tests: run_for is already a string
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmood Ali committed Jan 28, 2020
1 parent 438f98c commit 99bc650
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions client/state/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,6 @@ func TestStateDB_Allocations(t *testing.T) {
alloc1 := mock.Alloc()
alloc2 := mock.BatchAlloc()

//XXX Sadly roundtripping allocs loses time.Duration type
// information from the Config map[string]interface{}. As
// the mock driver itself with unmarshal run_for into the
// proper type, we can safely ignore it here.
delete(alloc2.Job.TaskGroups[0].Tasks[0].Config, "run_for")

require.NoError(db.PutAllocation(alloc1))
require.NoError(db.PutAllocation(alloc2))

Expand Down

0 comments on commit 99bc650

Please sign in to comment.