From 99bc650ace0b448ad3eafe619de03022af74cc69 Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Tue, 28 Jan 2020 14:58:57 -0500 Subject: [PATCH] tests: run_for is already a string --- client/state/db_test.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/client/state/db_test.go b/client/state/db_test.go index 230c7ad86..c37ed8bd2 100644 --- a/client/state/db_test.go +++ b/client/state/db_test.go @@ -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))