diff --git a/tx0/user/user_profile_test.go b/tx0/user/user_profile_test.go index 33ad170..aa9ea8e 100644 --- a/tx0/user/user_profile_test.go +++ b/tx0/user/user_profile_test.go @@ -9,9 +9,9 @@ import ( func TestInitUserProfile(t *testing.T) { usr := User{Username: "Bob", PhoneNumber: "+12224572351", Password: "TheNight!"} - profile, done := InitUserProfile(&usr) + profile, err := InitUserProfile(&usr) - assert.Equal(t, done, true, "Error") + assert.NoError(t, err, "Error %v", err) assert.NotEmpty(t, profile, "UserProfile is empty") assert.Empty(t, profile.Usr.Password, "Password should be empty")