proxy: add idle timeout (#2319)

This commit is contained in:
wasaga 2021-07-02 10:29:53 -04:00 committed by GitHub
parent 2ceaae8e54
commit 134ca74ec9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 658 additions and 531 deletions

View file

@ -16,6 +16,7 @@ import (
// AssertProtoJSONEqual asserts that a protobuf message matches the given JSON. The protoMsg can also be a slice
// of protobuf messages.
func AssertProtoJSONEqual(t *testing.T, expected string, protoMsg interface{}, msgAndArgs ...interface{}) bool {
t.Helper()
protoMsgVal := reflect.ValueOf(protoMsg)
if protoMsgVal.Kind() == reflect.Slice {
var protoMsgs []json.RawMessage