Skip to content

Commit eedc099

Browse files
committed
fix tests
Signed-off-by: hfuss <[email protected]>
1 parent 81c8398 commit eedc099

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/ffapi/handler_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ func TestRouteServePOST201WithParams(t *testing.T) {
115115
}}, "", nil)
116116
defer done()
117117
SetRequestIDHeader("x-unittest-req-id") // tests custom req header
118+
defer func() {
119+
SetRequestIDHeader(DefaultRequestIDHeader) // reverts this for other tests
120+
}()
118121

119122
b, _ := json.Marshal(map[string]interface{}{"input1": "value1"})
120123

0 commit comments

Comments
 (0)