mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-03-18 05:37:49 +02:00
removed unnecessary test cases prefix
This commit is contained in:
parent
bc0222dcb4
commit
ff6904f1f8
@ -217,16 +217,16 @@ func TestSerialize(t *testing.T) {
|
||||
c.Response().Status = s.statusCode
|
||||
|
||||
if err := s.serializer.Serialize(c, s.data, ""); err != nil {
|
||||
t.Fatalf("[%s] Serialize failure: %v", s.name, err)
|
||||
t.Fatalf("Serialize failure: %v", err)
|
||||
}
|
||||
|
||||
rawBody, err := io.ReadAll(rec.Result().Body)
|
||||
if err != nil {
|
||||
t.Fatalf("[%s] Failed to read request body: %v", s.name, err)
|
||||
t.Fatalf("Failed to read request body: %v", err)
|
||||
}
|
||||
|
||||
if v := strings.TrimSpace(string(rawBody)); v != s.expected {
|
||||
t.Fatalf("[%s] Expected body\n%v \ngot: \n%v", s.name, s.expected, v)
|
||||
t.Fatalf("Expected body\n%v \ngot: \n%v", s.expected, v)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user