Revert "Fix PR comments"

This reverts commit 1ebd9c5791.
pull/987/head
Boyan 2020-07-27 22:28:46 +10:00
parent b09b5a43a5
commit ed4976c764
2 changed files with 0 additions and 25 deletions

View File

@ -60,16 +60,6 @@ func ObjectsAreEqual(expected, actual interface{}) bool {
return expected == actual
}
tExp, ok := expected.(time.Time)
if ok {
tAct, ok := actual.(time.Time)
if ok {
return tExp.Equal(tAct)
}
return false
}
exp, ok := expected.([]byte)
if !ok {
return reflect.DeepEqual(expected, actual)

View File

@ -148,21 +148,6 @@ func TestObjectsAreEqual(t *testing.T) {
}
func TestObjectsAreEqual_SerializedTime(t *testing.T) {
t0 := time.Now().Round(0)
b, err := json.Marshal(t0)
if err != nil {
t.Fail()
}
var t1 time.Time
if err := json.Unmarshal(b, &t1); err != nil {
t.Fail()
}
if !ObjectsAreEqual(t0, t1) {
t.Errorf("time must be equals")
}
}
func TestImplements(t *testing.T) {
mockT := new(testing.T)