core/redis: remove redis (#4768)

* core/redis: remove redis

* 20 minute max wait
This commit is contained in:
Caleb Doxsey 2023-11-28 13:14:36 -07:00 committed by GitHub
parent d610b9c25c
commit bcddbff6e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 24 additions and 1187 deletions

View file

@ -7,6 +7,7 @@ import (
"path/filepath"
"reflect"
"testing"
"time"
"github.com/google/go-cmp/cmp"
"github.com/stretchr/testify/assert"
@ -15,6 +16,8 @@ import (
"google.golang.org/protobuf/testing/protocmp"
)
const maxWait = time.Minute * 20
// AssertProtoEqual asserts that two protobuf messages equal. Slices of messages are also supported.
func AssertProtoEqual(t *testing.T, expected, actual interface{}, msgAndArgs ...interface{}) bool {
t.Helper()
@ -70,8 +73,3 @@ func ModRoot() string {
}
return ""
}
// TestDataRoot returns the testdata directory.
func TestDataRoot() string {
return filepath.Join(ModRoot(), "internal", "testutil", "testdata")
}