Преглед изворни кода

chore(test): use Infof if you include a formatting string

Mustafa Arici пре 7 година
родитељ
комит
eae9e56f13
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      user_test.go

+ 1 - 1
user_test.go

@@ -372,7 +372,7 @@ func TestUser_ExpiresAt(t *testing.T) {
 // areUsersEqual compares given users and returns true if they are the same.
 func areUsersEqual(user1, user2 *ovpm.User) bool {
 	if user1.GetCert() != user2.GetCert() {
-		logrus.Info("Cert %v != %v", user1.GetCert(), user2.GetCert())
+		logrus.Infof("Cert %v != %v", user1.GetCert(), user2.GetCert())
 		return false
 	}
 	if user1.GetUsername() != user2.GetUsername() {