1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-28 21:15:46 -05: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

@@ -3,7 +3,6 @@ package http_test
import (
"testing"
"v2ray.com/core/common/compare"
. "v2ray.com/core/common/protocol/http"
)
@@ -98,8 +97,8 @@ first_name=John&last_name=Doe&action=Submit`,
if err != nil {
t.Errorf("Expect no error but actually %s in test %v", err.Error(), test)
}
if err := compare.StringEqualWithDetail(header.Domain(), test.domain); err != nil {
t.Error(err)
if header.Domain() != test.domain {
t.Error("expected domain ", test.domain, " but got ", header.Domain())
}
}
}