From bbdc692a93d163c1852a347d30c9ff15bf0e0d55 Mon Sep 17 00:00:00 2001 From: v2ray Date: Mon, 23 May 2016 20:32:08 +0200 Subject: [PATCH] fix test break --- common/serial/string_json_test.go | 8 ++++---- common/serial/string_list_json_test.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/serial/string_json_test.go b/common/serial/string_json_test.go index c2917fa7f..d69bb2b23 100644 --- a/common/serial/string_json_test.go +++ b/common/serial/string_json_test.go @@ -11,18 +11,18 @@ import ( "github.com/v2ray/v2ray-core/testing/assert" ) -func TestInvalidStringLiteralJson(t *testing.T) { +func TestInvalidStringTJson(t *testing.T) { v2testing.Current(t) - var s StringLiteral + var s StringT err := json.Unmarshal([]byte("1"), &s) assert.Error(err).IsNotNil() } -func TestStringLiteralParsing(t *testing.T) { +func TestStringTParsing(t *testing.T) { v2testing.Current(t) - var s StringLiteral + var s StringT err := json.Unmarshal([]byte("\"1\""), &s) assert.Error(err).IsNil() assert.String(s).Equals("1") diff --git a/common/serial/string_list_json_test.go b/common/serial/string_list_json_test.go index 6f361e727..70bdaab47 100644 --- a/common/serial/string_list_json_test.go +++ b/common/serial/string_list_json_test.go @@ -15,7 +15,7 @@ func TestStringListUnmarshalError(t *testing.T) { v2testing.Current(t) rawJson := `1234` - list := new(StringLiteralList) + list := new(StringTList) err := json.Unmarshal([]byte(rawJson), list) assert.Error(err).IsNotNil() }