fix: test failure (#2874)

This commit is contained in:
Kevin Wan
2023-02-12 20:08:02 +08:00
committed by kevin
parent 0ba9335b04
commit f0b8dd45fe
2 changed files with 7 additions and 3 deletions

View File

@@ -793,7 +793,9 @@ func TestUnmarshalStringMapFromNotSettableValue(t *testing.T) {
}
ast := assert.New(t)
ast.Error(UnmarshalKey(m, &v))
ast.NoError(UnmarshalKey(m, &v))
assert.Empty(t, v.sort)
assert.Nil(t, v.psort)
}
func TestUnmarshalStringMapFromString(t *testing.T) {