mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-19 15:57:04 -05:00
fix build break
This commit is contained in:
parent
c20a7958c2
commit
5559c1ca60
@ -1,16 +1,12 @@
|
|||||||
package unit
|
package unit
|
||||||
|
|
||||||
import (
|
|
||||||
"fmt"
|
|
||||||
)
|
|
||||||
|
|
||||||
type ErrorSubject struct {
|
type ErrorSubject struct {
|
||||||
*Subject
|
*Subject
|
||||||
value error
|
value error
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewErrorSubject(base *Subject, value error) *ErrorSubject {
|
func NewErrorSubject(base *Subject, value error) *ErrorSubject {
|
||||||
subject := new(StringSubject)
|
subject := new(ErrorSubject)
|
||||||
subject.Subject = base
|
subject.Subject = base
|
||||||
subject.value = value
|
subject.value = value
|
||||||
return subject
|
return subject
|
||||||
@ -37,6 +33,6 @@ func (subject *ErrorSubject) Equals(expectation error) {
|
|||||||
|
|
||||||
func (subject *ErrorSubject) IsNil() {
|
func (subject *ErrorSubject) IsNil() {
|
||||||
if subject.value != nil {
|
if subject.value != nil {
|
||||||
subject.FailWithMethod("Not true that " + subject.DisplayString() + " is nil.")
|
subject.FailWithMessage("Not true that " + subject.DisplayString() + " is nil.")
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,7 +1,6 @@
|
|||||||
package core
|
package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/v2ray/v2ray-core/testing/unit"
|
"github.com/v2ray/v2ray-core/testing/unit"
|
||||||
|
Loading…
Reference in New Issue
Block a user