From 570017680c4c47eeb76485d444d126030766d8e2 Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Thu, 26 Jul 2018 19:24:53 +0200 Subject: [PATCH] Don't write headers for various field update tests --- controller/workitem_blackbox_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/controller/workitem_blackbox_test.go b/controller/workitem_blackbox_test.go index 30f5fafaed..e1574f25dc 100644 --- a/controller/workitem_blackbox_test.go +++ b/controller/workitem_blackbox_test.go @@ -1055,10 +1055,9 @@ func (s *WorkItem2Suite) TestWI2UpdateFieldOfDifferentSimpleTypes() { // when compareWithGoldenAgnostic(t, filepath.Join(s.testDir, "update", kind.String(), fmt.Sprintf("valid_sample_%d", i)+".req.payload.golden.json"), u) // Update the work item - res, updatedWI := test.UpdateWorkitemOK(t, s.svc.Context, s.svc, s.workitemCtrl, wi.ID, &u) + _, updatedWI := test.UpdateWorkitemOK(t, s.svc.Context, s.svc, s.workitemCtrl, wi.ID, &u) // Check for updated value compareWithGoldenAgnostic(t, filepath.Join(s.testDir, "update", kind.String(), fmt.Sprintf("valid_sample_%d", i)+".res.payload.golden.json"), updatedWI) - compareWithGoldenAgnostic(t, filepath.Join(s.testDir, "update", kind.String(), fmt.Sprintf("valid_sample_%d", i)+".res.headers.golden.json"), res.Header()) _, loadedWi := test.ShowWorkitemOK(t, s.svc.Context, s.svc, s.workitemCtrl, *updatedWI.Data.ID, nil, nil) require.NotNil(t, loadedWi) // compensate for errors when interpreting ambigous actual values