1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 22:36:12 -04:00

fix build break

This commit is contained in:
V2Ray 2015-09-09 15:19:46 +02:00
parent c20a7958c2
commit 5559c1ca60
2 changed files with 2 additions and 7 deletions

View File

@ -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.")
}
}

View File

@ -1,7 +1,6 @@
package core
import (
"bytes"
"testing"
"github.com/v2ray/v2ray-core/testing/unit"