update to latest micro

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-09-22 02:05:09 +03:00
parent be6d3b806f
commit cddee4ddb0
5 changed files with 96 additions and 17 deletions

View File

@@ -18,7 +18,7 @@ func TestStructByTag(t *testing.T) {
t.Fatal(err)
}
if !bytes.Equal(buf, []byte(`["first","second"]`)) {
t.Fatalf("invalid marshal: %s", buf)
t.Fatalf("invalid marshal: %v != %v", buf, []byte(`["first","second"]`))
}
err = c.Unmarshal([]byte(`["1","2"]`), val)
@@ -29,7 +29,6 @@ func TestStructByTag(t *testing.T) {
if len(val.Name) != 2 {
t.Fatalf("invalid unmarshal: %v", val)
}
}
func TestReadBody(t *testing.T) {