feat: a concurrent runner with messages taken in pushing order (#3941)

This commit is contained in:
Kevin Wan
2024-03-02 10:03:58 +08:00
committed by GitHub
parent c98d5fdaf4
commit a1bacd3fc8
3 changed files with 203 additions and 3 deletions

View File

@@ -12,7 +12,6 @@ import (
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/zeromicro/go-zero/core/stringx"
)
@@ -5413,11 +5412,10 @@ func TestFillDefaultUnmarshal(t *testing.T) {
})
t.Run("optional !", func(t *testing.T) {
type St struct {
var st struct {
A string `json:",optional"`
B string `json:",optional=!A"`
}
var st = St{}
err := fillDefaultUnmarshal.Unmarshal(map[string]any{}, &st)
assert.NoError(t, err)
})