Skip to content

Commit

Permalink
Merge pull request #406 from githubsands/bug/requestResponse_fix
Browse files Browse the repository at this point in the history
Bug/request response fix
  • Loading branch information
githubsands authored May 7, 2019
2 parents c17400e + 7c82133 commit bc84b2a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bookkeeping/requestResponse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,19 @@ func testReturnHeadersWithPrefix(t *testing.T, request *http.Request, headerPref
require.NotNil(rf)
kv := rf(request)

expectedkvMap := make(map[int]interface{})
for i, v := range expectedKV {
expectedkvMap[i] = v
}

kvMap := make(map[int]interface{})
for i, v := range kv {
kvMap[i] = v
}

// for i, v := range expectedKV {
if ok := reflect.DeepEqual(expectedKV, kv); !ok {
t.Errorf("Expecting: %v\n but got: %v\n", spew.Sdump(expectedKV), spew.Sdump(kv))
t.Errorf("Expecting: %v\n but got: %v\n", spew.Sdump(expectedkvMap), spew.Sdump(kvMap))
}
}

Expand Down

0 comments on commit bc84b2a

Please sign in to comment.