mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Update compare test
This commit is contained in:
parent
6404f94072
commit
5896fbc394
|
|
@ -15,6 +15,7 @@ package transactions
|
|||
import (
|
||||
"net/http"
|
||||
"net/url"
|
||||
"reflect"
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
|
|
@ -28,7 +29,9 @@ type fakeType struct {
|
|||
func TestCompare(t *testing.T) {
|
||||
c1 := CacheKey{"1", "2", ""}
|
||||
c2 := CacheKey{"1", "2", ""}
|
||||
t.Logf("%v", c1 == c2)
|
||||
if !reflect.DeepEqual(c1, c2) {
|
||||
t.Fatalf("Cache keys differ: %+v <> %+v", c1, c2)
|
||||
}
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
|
|||
Loading…
Reference in a new issue