updated the structure of TestPersistLanguageCode

This commit is contained in:
Alfred Kamanda 2025-01-23 11:30:25 +03:00
parent f884b19012
commit caabf4f8af
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -2328,6 +2328,7 @@ func TestPersistLanguageCode(t *testing.T) {
}
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
err := h.persistLanguageCode(ctx, test.code)
if err != nil {
t.Logf(err.Error())
@ -2335,6 +2336,7 @@ func TestPersistLanguageCode(t *testing.T) {
code, err := store.ReadEntry(ctx, sessionId, storedb.DATA_SELECTED_LANGUAGE_CODE)
assert.Equal(t, test.expectedLanguageCode, string(code))
})
}
}