1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-19 02:49:06 -04:00

update tests

This commit is contained in:
Darien Raymond
2018-11-15 11:17:20 +01:00
parent ac4f868078
commit 24288a74a2
11 changed files with 48 additions and 50 deletions

View File

@@ -4,7 +4,8 @@ import (
"io"
"testing"
"v2ray.com/core/common/compare"
"github.com/google/go-cmp/cmp"
. "v2ray.com/core/common/errors"
"v2ray.com/core/common/log"
. "v2ray.com/ext/assert"
@@ -46,8 +47,8 @@ func TestErrorMessage(t *testing.T) {
}
for _, d := range data {
if err := compare.StringEqualWithDetail(d.msg, d.err.Error()); err != nil {
t.Fatal(err)
if diff := cmp.Diff(d.msg, d.err.Error()); diff != "" {
t.Error(diff)
}
}
}