test: fix test
Some checks failed
Dev / build-local (push) Has been cancelled
Dev / migrate-boltdb (push) Has been cancelled
Dev / migrate-mysql (push) Has been cancelled
Dev / migrate-mariadb (push) Has been cancelled
Dev / migrate-postgres (push) Has been cancelled
Dev / integrate-boltdb (push) Has been cancelled
Dev / integrate-mysql (push) Has been cancelled
Dev / integrate-mariadb (push) Has been cancelled
Dev / integrate-postgres (push) Has been cancelled
Dev / deploy-server (push) Has been cancelled
Dev / deploy-runner (push) Has been cancelled

This commit is contained in:
Denis Gukov 2024-12-19 01:03:58 +05:00
parent 8a148f231f
commit 081ecb1585
No known key found for this signature in database
GPG Key ID: 044381366A5D4731

View File

@ -68,7 +68,7 @@ func TestUnmarshalObject(t *testing.T) {
"last_name": "Gukov", "last_name": "Gukov",
"password": "9347502348723" "password": "9347502348723"
}` }`
err := unmarshalObject([]byte(data), &test1) err := unmarshalObject([]byte(data), &test1, nil)
require.NoError(t, err) require.NoError(t, err)
assert.Equal(t, "Denis", test1.FirstName) assert.Equal(t, "Denis", test1.FirstName)