From 5559c1ca6018668b9ce82d66982c177002b12f58 Mon Sep 17 00:00:00 2001 From: V2Ray Date: Wed, 9 Sep 2015 15:19:46 +0200 Subject: [PATCH] fix build break --- testing/unit/errorsubject.go | 8 ++------ vid_test.go | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/testing/unit/errorsubject.go b/testing/unit/errorsubject.go index 7c94f099..9ef4210b 100644 --- a/testing/unit/errorsubject.go +++ b/testing/unit/errorsubject.go @@ -1,16 +1,12 @@ package unit -import ( - "fmt" -) - type ErrorSubject struct { *Subject value error } func NewErrorSubject(base *Subject, value error) *ErrorSubject { - subject := new(StringSubject) + subject := new(ErrorSubject) subject.Subject = base subject.value = value return subject @@ -37,6 +33,6 @@ func (subject *ErrorSubject) Equals(expectation error) { func (subject *ErrorSubject) IsNil() { if subject.value != nil { - subject.FailWithMethod("Not true that " + subject.DisplayString() + " is nil.") + subject.FailWithMessage("Not true that " + subject.DisplayString() + " is nil.") } } \ No newline at end of file diff --git a/vid_test.go b/vid_test.go index bd558a90..b2e3df84 100644 --- a/vid_test.go +++ b/vid_test.go @@ -1,7 +1,6 @@ package core import ( - "bytes" "testing" "github.com/v2ray/v2ray-core/testing/unit"