mirror of
https://github.com/alist-org/gofakes3.git
synced 2025-12-24 12:58:04 +08:00
build: fix tests which were expecting to error
This commit is contained in:
@@ -1097,8 +1097,8 @@ func TestCVE202230633(t *testing.T) {
|
||||
Things []string
|
||||
}
|
||||
err := Unmarshal(bytes.Repeat([]byte("<a>"), 17_000_000), &example)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
if err == nil {
|
||||
t.Errorf("Expecting an error here")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1054,8 +1054,8 @@ func TestTokenUnmarshaler(t *testing.T) {
|
||||
|
||||
d := NewTokenDecoder(tokReader{})
|
||||
err := d.Decode(&Failure{})
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
if err == nil {
|
||||
t.Error("Expecting an error here")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user