Merge pull request #2809 from Poor12/fix-ut

Fix ut failure
This commit is contained in:
karmada-bot 2022-11-16 11:45:04 +08:00 committed by GitHub
commit 5895d73838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -623,13 +623,11 @@ func Test_decodeValue(t *testing.T) {
args: args{
value: map[string]interface{}{
"foo": "foo1",
"bar": "bar1",
},
},
want: func() lua.LValue {
v := L.CreateTable(0, 2)
v := L.CreateTable(0, 1)
v.RawSetString("foo", lua.LString("foo1"))
v.RawSetString("bar", lua.LString("bar1"))
return v
}(),
},